<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:15:53 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Git - githooks</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Guides">
                                Guides                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="6773541ea8d804a3da6ceeac7bc170b87e244adbfe13e578520de12f08c3800b/be" data-source="githooks" onmousemove="i18n(this)">githooks</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="df9659695b154e6e3e28dbcfe57961292b60d91d70d288c7a80fd59d90856d28/e3" data-source="githooks - Hooks used by Git" onmousemove="i18n(this)">githooks &mdash; &khcy;&ucy;&kcy;&icy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&iecy;  Git</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <p><span data-i18n="5a7ccff89ff0b63a1e19fbbffd5a3951716774d895fa1eeb39bad7a7a45f2aa1/ac" data-source="$GIT_DIR/hooks/* (or `git config core.hooksPath`/*)" onmousemove="i18n(this)">$GIT_DIR/hooks/* (&icy;&lcy;&icy; `git config core.hooksPath`/*)</span></p> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="7b228e96d53f6ca6648faaa6225113185520a6b196e4220319e0f8bc6a947698/ae" data-source="Hooks are programs you can place in a hooks directory to trigger actions at certain points in git&amp;rsquo;s execution. Hooks that don&amp;rsquo;t have the executable bit set are ignored." onmousemove="i18n(this)">&KHcy;&ucy;&kcy;&icy; &mdash; &ecy;&tcy;&ocy; &pcy;&rcy;&ocy;&gcy;&rcy;&acy;&mcy;&mcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&ocy;&mcy;&iecy;&scy;&tcy;&icy;&tcy;&softcy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &khcy;&ucy;&kcy;&ocy;&vcy; &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&jcy; &vcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &tcy;&ocy;&chcy;&kcy;&acy;&khcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; git. &Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy;, &ucy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &bcy;&icy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;, &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="abb6e4247c8a1e1491dbea62d9fe18550be14af9087454340bb2e701ad7d54da/fa" data-source="By default the hooks directory is &lt;code&gt;$GIT_DIR/hooks&lt;/code&gt;, but that can be changed via the &lt;code&gt;core.hooksPath&lt;/code&gt; configuration variable (see &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;)." onmousemove="i18n(this)">&Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ocy;&vcy; &mdash;  <code>$GIT_DIR/hooks</code> , &ncy;&ocy; &iecy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.hooksPath</code>  (&scy;&mcy;.  <a href="git-config.html">git-config[1]</a> ).</span></p> <p><span data-i18n="a67537a8a304755f0a5c90a751a8616ba0b69a187e9b90bc577a41333e21b838/5c" data-source="Before Git invokes a hook, it changes its working directory to either $GIT_DIR in a bare repository or the root of the working tree in a non-bare repository. An exception are hooks triggered during a push (&lt;code&gt;pre-receive&lt;/code&gt;, &lt;code&gt;update&lt;/code&gt;, &lt;code&gt;post-receive&lt;/code&gt;, &lt;code&gt;post-update&lt;/code&gt;, &lt;code&gt;push-to-checkout&lt;/code&gt;) which are always executed in $GIT_DIR." onmousemove="i18n(this)">&Pcy;&rcy;&iecy;&zhcy;&dcy;&iecy; &chcy;&iecy;&mcy;  Git  &vcy;&ycy;&zcy;&ocy;&vcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;, &ocy;&ncy; &mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &scy;&vcy;&ocy;&jcy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &lcy;&icy;&bcy;&ocy; &ncy;&acy; $GIT_DIR &vcy; &pcy;&ucy;&scy;&tcy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &lcy;&icy;&bcy;&ocy; &ncy;&acy; &kcy;&ocy;&rcy;&iecy;&ncy;&softcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &vcy; &ncy;&iecy;&pcy;&ucy;&scy;&tcy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &yacy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&ycy;, &scy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&iecy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; push ( <code>pre-receive</code> ,  <code>update</code> ,  <code>post-receive</code> ,  <code>post-update</code> ,  <code>push-to-checkout</code> ), &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy; $GIT_DIR.</span></p> <p><span data-i18n="c64c062134c6235303a37b93503671007ce081f25528db4c6983f88079c52e0d/a4" data-source="Environment variables, such as &lt;code&gt;GIT_DIR&lt;/code&gt;, &lt;code&gt;GIT_WORK_TREE&lt;/code&gt;, etc., are exported so that Git commands run by the hook can correctly locate the repository. If your hook needs to invoke Git commands in a foreign repository or in a different working tree of the same repository, then it should clear these environment variables so they do not interfere with Git operations at the foreign location. For example:" onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&rcy;&iecy;&dcy;&ycy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy;  <code>GIT_DIR</code> ,  <code>GIT_WORK_TREE</code>  &icy; &tcy;. &dcy;., &ecy;&kcy;&scy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  Git , &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&mcy;&ycy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ocy;&mcy;, &mcy;&ocy;&gcy;&lcy;&icy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ocy; &ncy;&acy;&jcy;&tcy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;. &IEcy;&scy;&lcy;&icy; &vcy;&acy;&shcy;&iecy;&mcy;&ucy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ucy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  Git  &vcy;&ocy; &vcy;&ncy;&iecy;&shcy;&ncy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &icy;&lcy;&icy; &vcy; &dcy;&rcy;&ucy;&gcy;&ocy;&mcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&iecy; &tcy;&ocy;&gcy;&ocy; &zhcy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &iecy;&mcy;&ucy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &ocy;&chcy;&icy;&scy;&tcy;&icy;&tcy;&softcy; &ecy;&tcy;&icy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&rcy;&iecy;&dcy;&ycy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy;&icy; &ncy;&iecy; &mcy;&iecy;&shcy;&acy;&lcy;&icy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yacy;&mcy;  Git  &vcy;&ocy; &vcy;&ncy;&iecy;&shcy;&ncy;&iecy;&mcy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&iecy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;:</span></p> <div> <div> <pre class="hljs language-ini"><span class="hljs-attr">local_desc</span>=$(git describe)
<span class="hljs-attr">foreign_desc</span>=$(unset $(git rev-parse --local-env-vars)<span class="hljs-comment" title="; git -C ../foreign-repo describe)">; git -C ../foreign-repo &ocy;&pcy;&icy;&scy;&acy;&tcy;&softcy;)</span></pre> </div> </div> <p><span data-i18n="fee7e2f9e7e9b7229b100578a704ae4c60cf3729c51ab8efc163d924e6f91dec/43" data-source="Hooks can get their arguments via the environment, command-line arguments, and stdin. See the documentation for each hook below for details." onmousemove="i18n(this)">&KHcy;&ucy;&kcy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&tcy;&softcy; &scy;&vcy;&ocy;&icy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; &chcy;&iecy;&rcy;&iecy;&zcy; &scy;&rcy;&iecy;&dcy;&ucy;, &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &icy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy;. &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&mcy;&ocy;&tcy;&rcy;&icy;&tcy;&iecy; &vcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy; &pcy;&ocy; &kcy;&acy;&zhcy;&dcy;&ocy;&mcy;&ucy; &khcy;&ucy;&kcy;&ucy; &ncy;&icy;&zhcy;&iecy;.</span></p> <p><span data-i18n="0fada3d9ed6700807b4b2eb47f6e83deefaa398816e9c4d50d85a472df627425/ef" data-source="&lt;code&gt;git init&lt;/code&gt; may copy hooks to the new repository, depending on its configuration. See the &amp;quot;TEMPLATE DIRECTORY&amp;quot; section in &lt;a href=&quot;git-init&quot;&gt;git-init[1]&lt;/a&gt; for details. When the rest of this document refers to &amp;quot;default hooks&amp;quot; it&amp;rsquo;s talking about the default template shipped with Git." onmousemove="i18n(this)"><code>git init</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy; &vcy; &ncy;&ocy;&vcy;&ycy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;, &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &iecy;&gcy;&ocy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;. &Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &scy;&mcy;. &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;  &quot;TEMPLATE DIRECTORY&quot;  &vcy;  <a href="git-init.html">git-init[1]</a> . &Kcy;&ocy;&gcy;&dcy;&acy; &ocy;&scy;&tcy;&acy;&lcy;&softcy;&ncy;&acy;&yacy; &chcy;&acy;&scy;&tcy;&softcy; &ecy;&tcy;&ocy;&gcy;&ocy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy; &scy;&scy;&ycy;&lcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&acy;  &quot;default hooks&quot; , &rcy;&iecy;&chcy;&softcy; &icy;&dcy;&iecy;&tcy; &ocy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&mcy; &scy; Git.</span></p> <p><span data-i18n="af804a3642934877b0beaaf4755837b854751ab95c558f384d676eb5dfba35a9/29" data-source="The currently supported hooks are described below." onmousemove="i18n(this)">&Pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&ycy; &ncy;&icy;&zhcy;&iecy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_hooks"><span data-i18n="d412a062620ef57bace76558a0384077b1919e66ba0a35af91e5a372f873e65e/9c" data-source="Hooks" onmousemove="i18n(this)">Hooks</span></h2> <div> <div> <h3 class="text-body-emphasis"  id="_applypatch_msg"><span data-i18n="9f39c46678295e5dd72cdd07eb8dc37ca09ba22186cc3543c732cc389a611998/57" data-source="applypatch-msg" onmousemove="i18n(this)">applypatch-msg</span></h3> <p><span data-i18n="183ec9407fe50e2ccf526e226e89f07b5a741068eb202bc0f2286b977498797a/94" data-source="This hook is invoked by &lt;a href=&quot;git-am&quot;&gt;git-am[1]&lt;/a&gt;. It takes a single parameter, the name of the file that holds the proposed commit log message. Exiting with a non-zero status causes &lt;code&gt;git am&lt;/code&gt; to abort before applying the patch." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-am.html">git-am[1]</a> . &Ocy;&ncy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ocy;&dcy;&icy;&ncy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &mdash; &icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; &pcy;&rcy;&iecy;&dcy;&lcy;&acy;&gcy;&acy;&iecy;&mcy;&ocy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &acy;&vcy;&acy;&rcy;&icy;&jcy;&ncy;&ocy;&mcy;&ucy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yucy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;  <code>git am</code>  &pcy;&iecy;&rcy;&iecy;&dcy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy;&mcy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="e614fbfbd624c5e7c787b0880d02e31eee5584482fecdac471ec3122fc713c43/60" data-source="The hook is allowed to edit the message file in place, and can be used to normalize the message into some project standard format. It can also be used to refuse the commit after inspecting the message file." onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy; &mcy;&iecy;&scy;&tcy;&iecy; &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &ncy;&ocy;&rcy;&mcy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &vcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &pcy;&rcy;&ocy;&iecy;&kcy;&tcy;&acy;. &IEcy;&gcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&tcy;&kcy;&acy;&zcy;&acy; &ocy;&tcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &fcy;&acy;&jcy;&lcy;&acy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="578f004d3f11af5eec7f740cf6e94629a81d6423db47cd3c19122611347877ac/b2" data-source="The default &lt;code&gt;applypatch-msg&lt;/code&gt; hook, when enabled, runs the &lt;code&gt;commit-msg&lt;/code&gt; hook, if the latter is enabled." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>applypatch-msg</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>commit-msg</code> , &iecy;&scy;&lcy;&icy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_pre_applypatch"><span data-i18n="289bd63ba87754d047324c6c5d8de731494c081de7d55bb813dcaec1210ea518/ee" data-source="pre-applypatch" onmousemove="i18n(this)">pre-applypatch</span></h3> <p><span data-i18n="9bb560336971ce2bc604e724690b18f2f06b3bdd22334e864515f8692c508264/6e" data-source="This hook is invoked by &lt;a href=&quot;git-am&quot;&gt;git-am[1]&lt;/a&gt;. It takes no parameter, and is invoked after the patch is applied, but before a commit is made." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-am.html">git-am[1]</a> . &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;, &ncy;&ocy; &dcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="66b4ab784ce65221363e0ad0f75755eaf4bb7fd9920162970758385a7d3d0a26/9d" data-source="If it exits with non-zero status, then the working tree will not be committed after applying the patch." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ocy;&ncy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy;, &tcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ocy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&tcy;&chcy;&acy;.</span></p> <p><span data-i18n="a328279292268d3c52c6d4543793d70a272fec834ba9bf203778f2b038af8572/94" data-source="It can be used to inspect the current working tree and refuse to make a commit if it does not pass certain tests." onmousemove="i18n(this)">&IEcy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &icy; &ocy;&tcy;&kcy;&acy;&zcy;&acy; &ocy;&tcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&ocy; &ncy;&iecy; &pcy;&rcy;&ocy;&khcy;&ocy;&dcy;&icy;&tcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &tcy;&iecy;&scy;&tcy;&ycy;.</span></p> <p><span data-i18n="ebe52b6f822740e73e49a78fa40322d4a32ceeff65be79c5a6d1dd27b969c04a/39" data-source="The default &lt;code&gt;pre-applypatch&lt;/code&gt; hook, when enabled, runs the &lt;code&gt;pre-commit&lt;/code&gt; hook, if the latter is enabled." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-applypatch</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-commit</code> , &iecy;&scy;&lcy;&icy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_post_applypatch"><span data-i18n="b9ccf7f93205cd775df3ef64df9351a9628d368865040b9ee2f61dec783c178e/07" data-source="post-applypatch" onmousemove="i18n(this)">post-applypatch</span></h3> <p><span data-i18n="c8a749236e2c13269cb8440fa02302da0e9f6c64fd78ebef13a17c746eef7ff4/a7" data-source="This hook is invoked by &lt;a href=&quot;git-am&quot;&gt;git-am[1]&lt;/a&gt;. It takes no parameter, and is invoked after the patch is applied and a commit is made." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-am.html">git-am[1]</a> . &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="9726966654a44ee6338cd508531ca7445ddf86ce5e32c7eb91a693b6ae5d326c/b6" data-source="This hook is meant primarily for notification, and cannot affect the outcome of &lt;code&gt;git am&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &vcy; &pcy;&iecy;&rcy;&vcy;&ucy;&yucy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &dcy;&lcy;&yacy; &ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&vcy;&lcy;&icy;&yacy;&tcy;&softcy; &ncy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;  <code>git am</code> .</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_pre_commit"><span data-i18n="a58d5995c53d2528e852d3b32cfd236c6c0e8498880065242df4e879273de061/f3" data-source="pre-commit" onmousemove="i18n(this)">pre-commit</span></h3> <p><span data-i18n="80d56911dbc2341453802064b7a314b3da4ca674a3a15130444565914ffd5797/75" data-source="This hook is invoked by &lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt;, and can be bypassed with the &lt;code&gt;--no-verify&lt;/code&gt; option. It takes no parameters, and is invoked before obtaining the proposed commit log message and making a commit. Exiting with a non-zero status from this script causes the &lt;code&gt;git commit&lt;/code&gt; command to abort before creating a commit." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-commit.html">git-commit[1]</a> , &icy; &iecy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--no-verify</code> . &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &pcy;&rcy;&iecy;&dcy;&lcy;&ocy;&zhcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &icy; &scy;&ocy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&iecy;&mcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &icy;&zcy; &ecy;&tcy;&ocy;&gcy;&ocy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&ncy;&icy;&yucy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git commit</code>  &pcy;&iecy;&rcy;&iecy;&dcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&iecy;&mcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="55fbb123e444f5d8b1272e91ef36d9e46dc4dfc006c2fa8cb7594e4f5aadaca7/2c" data-source="The default &lt;code&gt;pre-commit&lt;/code&gt; hook, when enabled, catches introduction of lines with trailing whitespaces and aborts the commit when such a line is found." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-commit</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &scy; &kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ycy;&mcy;&icy; &pcy;&rcy;&ocy;&bcy;&iecy;&lcy;&acy;&mcy;&icy; &icy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&iecy;&tcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy;, &kcy;&ocy;&gcy;&dcy;&acy; &tcy;&acy;&kcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&acy;.</span></p> <p><span data-i18n="a5725c74ee46eb531fe5f2285484fe63e9055698ad26f2f59dac05ed3d90c25a/0e" data-source="All the &lt;code&gt;git commit&lt;/code&gt; hooks are invoked with the environment variable &lt;code&gt;GIT_EDITOR=:&lt;/code&gt; if the command will not bring up an editor to modify the commit message." onmousemove="i18n(this)">&Vcy;&scy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy;  <code>git commit</code>  &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &scy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_EDITOR=:</code> , &iecy;&scy;&lcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &ncy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &dcy;&lcy;&yacy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="f78ef5f274e23fadd1b9306bfb4805f95af1f3a75d9bc131a0d5fdabdd9f5e66/14" data-source="The default &lt;code&gt;pre-commit&lt;/code&gt; hook, when enabled&amp;mdash;&amp;ZeroWidthSpace;and with the &lt;code&gt;hooks.allownonascii&lt;/code&gt; config option unset or set to false&amp;mdash;&amp;ZeroWidthSpace;prevents the use of non-ASCII filenames." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-commit</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>hooks.allownonascii</code>  &ncy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &icy;&lcy;&icy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &vcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; false, &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &icy;&mcy;&iecy;&ncy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ycy;&khcy; &ocy;&tcy; ASCII.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_pre_merge_commit"><span data-i18n="9289d73cc79eeeec1fe3672a58cb7e1e6995d9fa1f67787d48ee9b6ad2a59cb9/83" data-source="pre-merge-commit" onmousemove="i18n(this)">pre-merge-commit</span></h3> <p><span data-i18n="8a57074d68e7c4134ccab2b16f9efa872748decf454e403de20d7eea7aae2350/e3" data-source="This hook is invoked by &lt;a href=&quot;git-merge&quot;&gt;git-merge[1]&lt;/a&gt;, and can be bypassed with the &lt;code&gt;--no-verify&lt;/code&gt; option. It takes no parameters, and is invoked after the merge has been carried out successfully and before obtaining the proposed commit log message to make a commit. Exiting with a non-zero status from this script causes the &lt;code&gt;git merge&lt;/code&gt; command to abort before creating a commit." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-merge.html">git-merge[1]</a> , &icy; &iecy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--no-verify</code> . &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &ucy;&scy;&pcy;&iecy;&shcy;&ncy;&ocy;&gcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&yacy; &icy; &dcy;&ocy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&rcy;&iecy;&dcy;&lcy;&acy;&gcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &icy;&zcy; &ecy;&tcy;&ocy;&gcy;&ocy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&ncy;&icy;&yucy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git merge</code>  &pcy;&iecy;&rcy;&iecy;&dcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&iecy;&mcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="d1e42c5e08587c6a6754a412902ac0941dba50d118f34b4f80b7d41b70e5c5a8/84" data-source="The default &lt;code&gt;pre-merge-commit&lt;/code&gt; hook, when enabled, runs the &lt;code&gt;pre-commit&lt;/code&gt; hook, if the latter is enabled." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-merge-commit</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-commit</code> , &iecy;&scy;&lcy;&icy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;.</span></p> <p><span data-i18n="3ee1bcff0920d812af2def406788203886dacd2e21d2dd8bed46f4148347c6d9/81" data-source="This hook is invoked with the environment variable &lt;code&gt;GIT_EDITOR=:&lt;/code&gt; if the command will not bring up an editor to modify the commit message." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_EDITOR=:</code> , &iecy;&scy;&lcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &ncy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &dcy;&lcy;&yacy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="941a1abeb0eb9624a09bbefc782177737265d4ad971205cac7e28a3c5a44e004/37" data-source="If the merge cannot be carried out automatically, the conflicts need to be resolved and the result committed separately (see &lt;a href=&quot;git-merge&quot;&gt;git-merge[1]&lt;/a&gt;). At that point, this hook will not be executed, but the &lt;code&gt;pre-commit&lt;/code&gt; hook will, if it is enabled." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&ocy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;, &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ycy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&icy;&tcy;&softcy; &icy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy; (&scy;&mcy;.  <a href="git-merge.html">git-merge[1]</a> ). &Vcy; &ecy;&tcy;&ocy;&tcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;, &acy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>pre-commit</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_prepare_commit_msg"><span data-i18n="4edae474103d7a517b00f554ffbda7c66c1e79334392a48dd1cdc90a23ac4718/79" data-source="prepare-commit-msg" onmousemove="i18n(this)">prepare-commit-msg</span></h3> <p><span data-i18n="2dab0c8d61eee95c1a28bbe6c77407b234326c73b6091d80b20ab9609b122878/a2" data-source="This hook is invoked by &lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt; right after preparing the default log message, and before the editor is started." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-commit.html">git-commit[1]</a>  &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&kcy;&icy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy; &pcy;&iecy;&rcy;&iecy;&dcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&ocy;&mcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&acy;.</span></p> <p><span data-i18n="1f1748f40a2ffbb4b3bf05c66f6598e5113252cfd21af604d923a35903d061b7/3d" data-source="It takes one to three parameters. The first is the name of the file that contains the commit log message. The second is the source of the commit message, and can be: &lt;code&gt;message&lt;/code&gt; (if a &lt;code&gt;-m&lt;/code&gt; or &lt;code&gt;-F&lt;/code&gt; option was given); &lt;code&gt;template&lt;/code&gt; (if a &lt;code&gt;-t&lt;/code&gt; option was given or the configuration option &lt;code&gt;commit.template&lt;/code&gt; is set); &lt;code&gt;merge&lt;/code&gt; (if the commit is a merge or a &lt;code&gt;.git/MERGE_MSG&lt;/code&gt; file exists); &lt;code&gt;squash&lt;/code&gt; (if a &lt;code&gt;.git/SQUASH_MSG&lt;/code&gt; file exists); or &lt;code&gt;commit&lt;/code&gt;, followed by a commit object name (if a &lt;code&gt;-c&lt;/code&gt;, &lt;code&gt;-C&lt;/code&gt; or &lt;code&gt;--amend&lt;/code&gt; option was given)." onmousemove="i18n(this)">&Tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&tcy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &dcy;&ocy; &tcy;&rcy;&iecy;&khcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy;. &Pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&scy;&tcy;&ocy;&chcy;&ncy;&icy;&kcy;&ocy;&mcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy;:  <code>message</code>  (&iecy;&scy;&lcy;&icy; &bcy;&ycy;&lcy;&acy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&acy; &ocy;&pcy;&tscy;&icy;&yacy;  <code>-m</code>  &icy;&lcy;&icy;  <code>-F</code> );  <code>template</code>  (&iecy;&scy;&lcy;&icy; &bcy;&ycy;&lcy;&acy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&acy; &ocy;&pcy;&tscy;&icy;&yacy;  <code>-t</code>  &icy;&lcy;&icy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&ocy;&pcy;&tscy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>commit.template</code> );  <code>merge</code>  (&iecy;&scy;&lcy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &icy;&lcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;  <code>.git/MERGE_MSG</code> );  <code>squash</code>  (&iecy;&scy;&lcy;&icy; &fcy;&acy;&jcy;&lcy;  <code>.git/SQUASH_MSG</code>  &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;); &icy;&lcy;&icy;  <code>commit</code>  , &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; (&iecy;&scy;&lcy;&icy; &bcy;&ycy;&lcy;&acy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&acy; &ocy;&pcy;&tscy;&icy;&yacy;  <code>-c</code>  ,  <code>-C</code>  &icy;&lcy;&icy;  <code>--amend</code> ).</span></p> <p><span data-i18n="fe908db802a17905b4fd70e7c323d95bc9829264269f87a845923caddf1d92f7/9b" data-source="If the exit status is non-zero, &lt;code&gt;git commit&lt;/code&gt; will abort." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &ncy;&iecy; &rcy;&acy;&vcy;&iecy;&ncy; &ncy;&ucy;&lcy;&yucy;,  <code>git commit</code>  &pcy;&rcy;&iecy;&rcy;&vcy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="7164b80017890349ef88b183accde2792796dbfa741f75322f4c68297142b233/08" data-source="The purpose of the hook is to edit the message file in place, and it is not suppressed by the &lt;code&gt;--no-verify&lt;/code&gt; option. A non-zero exit means a failure of the hook and aborts the commit. It should not be used as a replacement for the pre-commit hook." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&acy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy; &mcy;&iecy;&scy;&tcy;&iecy;, &icy; &ocy;&ncy;&ocy; &ncy;&iecy; &pcy;&ocy;&dcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--no-verify</code> . &Ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&jcy; &vcy;&ycy;&khcy;&ocy;&dcy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy; &scy;&bcy;&ocy;&jcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &icy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&iecy;&tcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy;. &IEcy;&gcy;&ocy; &ncy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy; &khcy;&ucy;&kcy;&acy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="63fca2bda341ed41c0938271a759001114599d59e926bfc2babd5eecccba1ade/b6" data-source="The sample &lt;code&gt;prepare-commit-msg&lt;/code&gt; hook that comes with Git removes the help message found in the commented portion of the commit template." onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;  <code>prepare-commit-msg</code> , &pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ycy;&jcy; &scy;  Git , &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &scy;&pcy;&rcy;&acy;&vcy;&ocy;&chcy;&ncy;&ocy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy;, &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ocy;&iecy; &vcy; &zcy;&acy;&kcy;&ocy;&mcy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&jcy; &chcy;&acy;&scy;&tcy;&icy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_commit_msg"><span data-i18n="d32ff282149e934c0b928ed10f302b0f77f2b857dbbc01a122dc3b71a9af317f/46" data-source="commit-msg" onmousemove="i18n(this)">commit-msg</span></h3> <p><span data-i18n="a63b14e31b2e6453d125a4de5e56eea0b04d2869156c0cabbbe72a29dd65c3d9/6a" data-source="This hook is invoked by &lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt; and &lt;a href=&quot;git-merge&quot;&gt;git-merge[1]&lt;/a&gt;, and can be bypassed with the &lt;code&gt;--no-verify&lt;/code&gt; option. It takes a single parameter, the name of the file that holds the proposed commit log message. Exiting with a non-zero status causes the command to abort." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-commit.html">git-commit[1]</a>  &icy;  <a href="git-merge.html">git-merge[1]</a> , &icy; &iecy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--no-verify</code> . &Ocy;&ncy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ocy;&dcy;&icy;&ncy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &mdash; &icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; &pcy;&rcy;&iecy;&dcy;&lcy;&acy;&gcy;&acy;&iecy;&mcy;&ocy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&ncy;&icy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;.</span></p> <p><span data-i18n="e614fbfbd624c5e7c787b0880d02e31eee5584482fecdac471ec3122fc713c43/60" data-source="The hook is allowed to edit the message file in place, and can be used to normalize the message into some project standard format. It can also be used to refuse the commit after inspecting the message file." onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy; &mcy;&iecy;&scy;&tcy;&iecy; &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &ncy;&ocy;&rcy;&mcy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &vcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &pcy;&rcy;&ocy;&iecy;&kcy;&tcy;&acy;. &IEcy;&gcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&tcy;&kcy;&acy;&zcy;&acy; &ocy;&tcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &fcy;&acy;&jcy;&lcy;&acy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="5f0b539af8e38b71f2287624b7c8b33b1aad230f68cfed0464dcf1b75f52358c/9e" data-source="The default &lt;code&gt;commit-msg&lt;/code&gt; hook, when enabled, detects duplicate &lt;code&gt;Signed-off-by&lt;/code&gt; trailers, and aborts the commit if one is found." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>commit-msg</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&yacy;&yucy;&shchcy;&icy;&iecy;&scy;&yacy; &tcy;&rcy;&iecy;&jcy;&lcy;&iecy;&rcy;&ycy;  <code>Signed-off-by</code>  &icy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&iecy;&tcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy;, &iecy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&ocy;&vcy;&ocy;&jcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_post_commit"><span data-i18n="88ae18e01476fea4cc756bd6bba040f5faa89b319b82ee2cbd5031891913dd96/45" data-source="post-commit" onmousemove="i18n(this)">post-commit</span></h3> <p><span data-i18n="14aa79e16b0ca722577791d53057422fbfaf83a52c3782a861f335219c248700/78" data-source="This hook is invoked by &lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt;. It takes no parameters, and is invoked after a commit is made." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-commit.html">git-commit[1]</a> . &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;.</span></p> <p><span data-i18n="ba0f6053cd41d05492b0b91eec9d8e5b570107a2316e6a7927deb5132ddd7570/74" data-source="This hook is meant primarily for notification, and cannot affect the outcome of &lt;code&gt;git commit&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &vcy; &pcy;&iecy;&rcy;&vcy;&ucy;&yucy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &dcy;&lcy;&yacy; &ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&vcy;&lcy;&icy;&yacy;&tcy;&softcy; &ncy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;  <code>git commit</code> .</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_pre_rebase"><span data-i18n="2c40cd5069f891720c7e459d9b8370b81d7c41a1de7de508caa42e032d394608/73" data-source="pre-rebase" onmousemove="i18n(this)">pre-rebase</span></h3> <p><span data-i18n="5f3e479ebb9f1474e868afa059ad5d820a8d339310ce8802deaf6a2b3de8a3e6/d4" data-source="This hook is called by &lt;a href=&quot;git-rebase&quot;&gt;git-rebase[1]&lt;/a&gt; and can be used to prevent a branch from getting rebased. The hook may be called with one or two parameters. The first parameter is the upstream from which the series was forked. The second parameter is the branch being rebased, and is not set when rebasing the current branch." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-rebase.html">git-rebase[1]</a>  &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &vcy;&iecy;&tcy;&kcy;&icy;. &KHcy;&ucy;&kcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &vcy;&ycy;&zcy;&vcy;&acy;&ncy; &scy; &ocy;&dcy;&ncy;&icy;&mcy; &icy;&lcy;&icy; &dcy;&vcy;&ucy;&mcy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;&mcy;&icy;. &Pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &mdash; &ecy;&tcy;&ocy; &vcy;&ocy;&scy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy;, &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &bcy;&ycy;&lcy;&acy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&acy; &scy;&iecy;&rcy;&icy;&yacy;. &Vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &mdash; &ecy;&tcy;&ocy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ucy;&iecy;&mcy;&acy;&yacy; &vcy;&iecy;&tcy;&vcy;&softcy;, &icy; &ocy;&ncy; &ncy;&iecy; &zcy;&acy;&dcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_post_checkout"><span data-i18n="a0ce1299da67c97c02ff89c093256b337da4247a20f73221a07d5d4b6bd52898/40" data-source="post-checkout" onmousemove="i18n(this)">post-checkout</span></h3> <p><span data-i18n="a2ef9e09df26f313b3bb5d42582fe0bd157a33e99a26ac9f79a758a0cb36891e/e9" data-source="This hook is invoked when a &lt;a href=&quot;git-checkout&quot;&gt;git-checkout[1]&lt;/a&gt; or &lt;a href=&quot;git-switch&quot;&gt;git-switch[1]&lt;/a&gt; is run after having updated the worktree. The hook is given three parameters: the ref of the previous HEAD, the ref of the new HEAD (which may or may not have changed), and a flag indicating whether the checkout was a branch checkout (changing branches, flag=1) or a file checkout (retrieving a file from the index, flag=0). This hook cannot affect the outcome of &lt;code&gt;git switch&lt;/code&gt; or &lt;code&gt;git checkout&lt;/code&gt;, other than that the hook&amp;rsquo;s exit status becomes the exit status of these two commands." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy;  <a href="git-checkout.html">git-checkout[1]</a>  &icy;&lcy;&icy;  <a href="git-switch.html">git-switch[1]</a>  &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;. &Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ucy; &dcy;&acy;&yucy;&tcy;&scy;&yacy; &tcy;&rcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;: &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&acy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&ucy;&yucy; HEAD, &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&acy; &ncy;&ocy;&vcy;&ucy;&yucy; HEAD (&kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &mcy;&ocy;&gcy;&lcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &icy;&lcy;&icy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;&scy;&yacy;) &icy; &fcy;&lcy;&acy;&gcy;, &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy;, &bcy;&ycy;&lcy;&acy; &lcy;&icy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&acy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&ocy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy; (&icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy;, &fcy;&lcy;&acy;&gcy; = 1) &icy;&lcy;&icy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&acy; (&icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&acy; &icy;&zcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;&acy;, &fcy;&lcy;&acy;&gcy;=0). &Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&vcy;&lcy;&icy;&yacy;&tcy;&softcy; &ncy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;  <code>git switch</code>  &icy;&lcy;&icy;  <code>git checkout</code>  , &zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&scy;&yacy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&icy;&khcy; &dcy;&vcy;&ucy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;.</span></p> <p><span data-i18n="69dc3dc7a3e654ccf83de0b73a66d5bedf722b227fddbfaa512510984ca28ead/1a" data-source="It is also run after &lt;a href=&quot;git-clone&quot;&gt;git-clone[1]&lt;/a&gt;, unless the &lt;code&gt;--no-checkout&lt;/code&gt; (&lt;code&gt;-n&lt;/code&gt;) option is used. The first parameter given to the hook is the null-ref, the second the ref of the new HEAD and the flag is always 1. Likewise for &lt;code&gt;git worktree add&lt;/code&gt; unless &lt;code&gt;--no-checkout&lt;/code&gt; is used." onmousemove="i18n(this)">&Ocy;&ncy; &tcy;&acy;&kcy;&zhcy;&iecy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy;  <a href="git-clone.html">git-clone[1]</a> , &iecy;&scy;&lcy;&icy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&tscy;&icy;&yacy;  <code>--no-checkout</code>  ( <code>-n</code> ). &Pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&jcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ucy;, &mdash; &ecy;&tcy;&ocy; &ncy;&ucy;&lcy;&iecy;&vcy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy;, &vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &mdash; &scy;&scy;&ycy;&lcy;&kcy;&acy; &ncy;&acy; &ncy;&ocy;&vcy;&ycy;&jcy; HEAD, &acy; &fcy;&lcy;&acy;&gcy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &rcy;&acy;&vcy;&iecy;&ncy; 1. &Acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ocy; &dcy;&lcy;&yacy;  <code>git worktree add</code> , &iecy;&scy;&lcy;&icy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  <code>--no-checkout</code> .</span></p> <p><span data-i18n="d8167b54ba1f63ce96d97a25ed020d4fe945331e2e3781ab8a2f7cbbc0e58e9f/fc" data-source="This hook can be used to perform repository validity checks, auto-display differences from the previous HEAD if different, or set working dir metadata properties." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &dcy;&ocy;&scy;&tcy;&ocy;&vcy;&iecy;&rcy;&ncy;&ocy;&scy;&tcy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&gcy;&ocy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&iecy;&ncy;&icy;&yacy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&jcy; &ocy;&tcy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&iecy;&gcy;&ocy; HEAD, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &ocy;&tcy;&lcy;&icy;&chcy;&acy;&iecy;&tcy;&scy;&yacy;, &icy;&lcy;&icy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&kcy;&icy; &scy;&vcy;&ocy;&jcy;&scy;&tcy;&vcy; &mcy;&iecy;&tcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&khcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_post_merge"><span data-i18n="16fc29252d22479a9958a9fdfb0902114d057ada74703665b1499d3f2739cee1/63" data-source="post-merge" onmousemove="i18n(this)">post-merge</span></h3> <p><span data-i18n="478e2a8e3d2f7fd6fd1752e44c079ef95992f46316d578adcd3f75468f1d94f5/f3" data-source="This hook is invoked by &lt;a href=&quot;git-merge&quot;&gt;git-merge[1]&lt;/a&gt;, which happens when a &lt;code&gt;git pull&lt;/code&gt; is done on a local repository. The hook takes a single parameter, a status flag specifying whether or not the merge being done was a squash merge. This hook cannot affect the outcome of &lt;code&gt;git merge&lt;/code&gt; and is not executed, if the merge failed due to conflicts." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-merge.html">git-merge[1]</a> , &chcy;&tcy;&ocy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&icy;&tcy;, &kcy;&ocy;&gcy;&dcy;&acy;  <code>git pull</code>  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &iecy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &mdash; &fcy;&lcy;&acy;&gcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&shchcy;&icy;&jcy;, &bcy;&ycy;&lcy;&ocy; &lcy;&icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&ncy;&ocy;&iecy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &scy;&kcy;&vcy;&ocy;&shcy;-&scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy;&mcy; &icy;&lcy;&icy; &ncy;&iecy;&tcy;. &Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&vcy;&lcy;&icy;&yacy;&tcy;&softcy; &ncy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;  <code>git merge</code>  &icy; &ncy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &scy;&lcy;&icy;&yacy;&ncy;&icy;&iecy; &ncy;&iecy; &ucy;&dcy;&acy;&lcy;&ocy;&scy;&softcy; &icy;&zcy;-&zcy;&acy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;.</span></p> <p><span data-i18n="b49b7b4cad99e01d06872d5b77bde8f4fb6e21551cf3b9c257a329f56032222c/63" data-source="This hook can be used in conjunction with a corresponding pre-commit hook to save and restore any form of metadata associated with the working tree (e.g.: permissions/ownership, ACLS, etc). See contrib/hooks/setgitperms.perl for an example of how to do this." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &kcy;&rcy;&yucy;&chcy;&ocy;&kcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy; &scy;&ocy;&chcy;&iecy;&tcy;&acy;&ncy;&icy;&icy; &scy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&mcy; &khcy;&ucy;&kcy;&ocy;&mcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&icy;&yacy; &icy; &vcy;&ocy;&scy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &lcy;&yucy;&bcy;&ocy;&jcy; &fcy;&ocy;&rcy;&mcy;&ycy; &mcy;&iecy;&tcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&khcy;, &scy;&vcy;&yacy;&zcy;&acy;&ncy;&ncy;&ycy;&khcy; &scy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&mcy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;&mcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;: &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&icy;&yacy;/&vcy;&lcy;&acy;&dcy;&iecy;&ncy;&icy;&iecy;, ACLS &icy; &tcy;.&nbsp;&dcy;.). &Scy;&mcy;. contrib/hooks/setgitperms.perl &dcy;&lcy;&yacy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&acy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &ecy;&tcy;&ocy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_pre_push"><span data-i18n="37e86730ec6e95c3fac164edaffc26292d8a74c4b1454e96c7cc0af49f1a7176/1b" data-source="pre-push" onmousemove="i18n(this)">pre-push</span></h3> <p><span data-i18n="dd6f9e36e9f0ccfbe075c30554aa0bf0972a4276adcbd2d594d931906bcea08e/55" data-source="This hook is called by &lt;a href=&quot;git-push&quot;&gt;git-push[1]&lt;/a&gt; and can be used to prevent a push from taking place. The hook is called with two parameters which provide the name and location of the destination remote, if a named remote is not being used both values will be the same." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-push.html">git-push[1]</a>  &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&icy;&yacy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy;. &Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &dcy;&vcy;&ucy;&mcy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy; &icy;&mcy;&yacy; &icy; &mcy;&iecy;&scy;&tcy;&ocy;&pcy;&ocy;&lcy;&ocy;&zhcy;&iecy;&ncy;&icy;&iecy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;&acy; &ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;. &IEcy;&scy;&lcy;&icy; &icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &kcy;&ocy;&mcy;&pcy;&softcy;&yucy;&tcy;&iecy;&rcy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;, &ocy;&bcy;&acy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&dcy;&icy;&ncy;&acy;&kcy;&ocy;&vcy;&ycy;&mcy;&icy;.</span></p> <p><span data-i18n="7e2f42639be7947b083e05dad425b8d77ff563c94ca043aa884a7782cd692062/46" data-source="Information about what is to be pushed is provided on the hook&amp;rsquo;s standard input with lines of the form:" onmousemove="i18n(this)">&Icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy; &ocy; &tcy;&ocy;&mcy;, &chcy;&tcy;&ocy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy;, &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&mcy; &vcy;&vcy;&ocy;&dcy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &vcy; &vcy;&icy;&dcy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy; &vcy;&icy;&dcy;&acy;:</span></p> <div> <div> <pre class="hljs language-csharp">&lt;local <span class="hljs-keyword">ref</span>&gt; SP &lt;local <span class="hljs-built_in">object</span> name&gt; SP &lt;remote <span class="hljs-keyword">ref</span>&gt; SP &lt;remote <span class="hljs-built_in">object</span> name&gt; LF</pre> </div> </div> <p><span data-i18n="55b72905e0aff802ffc01b11393d42431fded0fc3b7dc1e9e955618d636b3ee1/26" data-source="For instance, if the command &lt;code&gt;git push origin master:foreign&lt;/code&gt; were run the hook would receive a line like the following:" onmousemove="i18n(this)">&Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &bcy;&ycy; &bcy;&ycy;&lcy;&acy; &zcy;&acy;&pcy;&ucy;&shchcy;&iecy;&ncy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git push origin master:foreign</code> , &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&lcy; &bcy;&ycy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;, &pcy;&ocy;&dcy;&ocy;&bcy;&ncy;&ucy;&yucy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy;:</span></p> <div> <div> <pre class="hljs language-bash">refs/heads/master 67890 refs/heads/foreign 12345</pre> </div> </div> <p><span data-i18n="2d4c576fce9f3afe84a23c9260664785282024f6d257fda81719b899ae50bc02/95" data-source="although the full object name would be supplied. If the foreign ref does not yet exist the &lt;code&gt;&amp;lt;remote object name&amp;gt;&lt;/code&gt; will be the all-zeroes object name. If a ref is to be deleted, the &lt;code&gt;&amp;lt;local ref&amp;gt;&lt;/code&gt; will be supplied as &lt;code&gt;(delete)&lt;/code&gt; and the &lt;code&gt;&amp;lt;local object name&amp;gt;&lt;/code&gt; will be the all-zeroes object name. If the local commit was specified by something other than a name which could be expanded (such as &lt;code&gt;HEAD~&lt;/code&gt;, or an object name) it will be supplied as it was originally given." onmousemove="i18n(this)">&khcy;&ocy;&tcy;&yacy; &bcy;&ucy;&dcy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy; &pcy;&ocy;&lcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;. &IEcy;&scy;&lcy;&icy; &vcy;&ncy;&iecy;&shcy;&ncy;&yacy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &iecy;&shchcy;&iecy; &ncy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;,  <code>&lt;remote object name&gt;</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &scy;&ocy;&scy;&tcy;&ocy;&yacy;&shchcy;&icy;&mcy; &icy;&zcy; &vcy;&scy;&iecy;&khcy; &ncy;&ucy;&lcy;&iecy;&jcy;. &IEcy;&scy;&lcy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &ucy;&dcy;&acy;&lcy;&icy;&tcy;&softcy;,  <code>&lt;local ref&gt;</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy; &kcy;&acy;&kcy;  <code>(delete)</code> , &acy;  <code>&lt;local object name&gt;</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &scy;&ocy;&scy;&tcy;&ocy;&yacy;&shchcy;&icy;&mcy; &icy;&zcy; &vcy;&scy;&iecy;&khcy; &ncy;&ucy;&lcy;&iecy;&jcy;. &IEcy;&scy;&lcy;&icy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&acy;&yacy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yacy; &bcy;&ycy;&lcy;&acy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&acy; &chcy;&iecy;&mcy;-&tcy;&ocy; &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ycy;&mcy; &ocy;&tcy; &icy;&mcy;&iecy;&ncy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&ycy;&lcy;&ocy; &bcy;&ycy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&icy;&tcy;&softcy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;,  <code>HEAD~</code>  &icy;&lcy;&icy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;), &ocy;&ncy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy; &vcy; &tcy;&ocy;&mcy; &vcy;&icy;&dcy;&iecy;, &vcy; &kcy;&acy;&kcy;&ocy;&mcy; &ocy;&ncy;&ocy; &bcy;&ycy;&lcy;&ocy; &icy;&zcy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy; &zcy;&acy;&dcy;&acy;&ncy;&ocy;.</span></p> <p><span data-i18n="eca87d377bd1c25f2e7002e3ed623f4c606b74b4b8aa5201605167a062f02954/2c" data-source="If this hook exits with a non-zero status, &lt;code&gt;git push&lt;/code&gt; will abort without pushing anything. Information about why the push is rejected may be sent to the user by writing to standard error." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy;,  <code>git push</code>  &pcy;&rcy;&iecy;&rcy;&vcy;&iecy;&tcy;&scy;&yacy;, &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ncy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yacy;. &Icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy; &ocy; &tcy;&ocy;&mcy;, &pcy;&ocy;&chcy;&iecy;&mcy;&ucy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&iecy; &ocy;&tcy;&kcy;&lcy;&ocy;&ncy;&iecy;&ncy;&ocy;, &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yucy; &pcy;&ucy;&tcy;&iecy;&mcy; &zcy;&acy;&pcy;&icy;&scy;&icy; &vcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ucy;&yucy; &ocy;&shcy;&icy;&bcy;&kcy;&ucy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="pre-receive"><span data-i18n="4178ae36a80ac7b00f557473e1736ecb5dbb420175a9a26b7465d449ef6df3cf/b7" data-source="pre-receive" onmousemove="i18n(this)">pre-receive</span></h3> <p><span data-i18n="1fd46f4d4e52de11cbe52fa7225c26b027b18d816fa5a908791c3bb8aa951388/1e" data-source="This hook is invoked by &lt;a href=&quot;git-receive-pack&quot;&gt;git-receive-pack[1]&lt;/a&gt; when it reacts to &lt;code&gt;git push&lt;/code&gt; and updates reference(s) in its repository. Just before starting to update refs on the remote repository, the pre-receive hook is invoked. Its exit status determines the success or failure of the update." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-receive-pack.html">git-receive-pack[1]</a> , &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &rcy;&iecy;&acy;&gcy;&icy;&rcy;&ucy;&iecy;&tcy; &ncy;&acy;  <code>git push</code>  &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &scy;&vcy;&ocy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &pcy;&iecy;&rcy;&iecy;&dcy; &ncy;&acy;&chcy;&acy;&lcy;&ocy;&mcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy;. &IEcy;&gcy;&ocy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &ucy;&scy;&pcy;&iecy;&khcy; &icy;&lcy;&icy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ucy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="73346fbb852a764cc48e01aa9665f040d556447845f6efb2e545cb04af993763/49" data-source="This hook executes once for the receive operation. It takes no arguments, but for each ref to be updated it receives on standard input a line of the format:" onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &dcy;&lcy;&yacy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&rcy;&icy;&iecy;&mcy;&acy;. &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;, &ncy;&ocy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ocy;&ncy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;:</span></p> <div> <div> <pre class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">old-value</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">new-value</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">ref-name</span>&gt;</span> LF</pre> </div> </div> <p><span data-i18n="b8f6165c4b99ac0ba8027dda9dd55a3b1f230ae1f60b0b2411352153ee6ddd98/f3" data-source="where &lt;code&gt;&amp;lt;old-value&amp;gt;&lt;/code&gt; is the old object name stored in the ref, &lt;code&gt;&amp;lt;new-value&amp;gt;&lt;/code&gt; is the new object name to be stored in the ref and &lt;code&gt;&amp;lt;ref-name&amp;gt;&lt;/code&gt; is the full name of the ref. When creating a new ref, &lt;code&gt;&amp;lt;old-value&amp;gt;&lt;/code&gt; is the all-zeroes object name." onmousemove="i18n(this)">&gcy;&dcy;&iecy;  <code>&lt;old-value&gt;</code>  &mdash; &ecy;&tcy;&ocy; &scy;&tcy;&acy;&rcy;&ocy;&iecy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &khcy;&rcy;&acy;&ncy;&yacy;&shchcy;&iecy;&iecy;&scy;&yacy; &vcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;,  <code>&lt;new-value&gt;</code>  &mdash; &ncy;&ocy;&vcy;&ocy;&iecy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &khcy;&rcy;&acy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &vcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;, &acy;  <code>&lt;ref-name&gt;</code>  &mdash; &pcy;&ocy;&lcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Pcy;&rcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&icy; &ncy;&ocy;&vcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;  <code>&lt;old-value&gt;</code>  &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &scy;&ocy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &icy;&zcy; &vcy;&scy;&iecy;&khcy; &ncy;&ucy;&lcy;&iecy;&jcy;.</span></p> <p><span data-i18n="8e17a935238eca2bda3b061fa731829b0debd0ac1bcf4eb256c72c39cd2b70f0/f8" data-source="If the hook exits with non-zero status, none of the refs will be updated. If the hook exits with zero, updating of individual refs can still be prevented by the &lt;a href=&quot;#update&quot;&gt;&lt;em&gt;update&lt;/em&gt;&lt;/a&gt; hook." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy;,  none  &scy;&scy;&ycy;&lcy;&ocy;&kcy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;. &IEcy;&scy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &ncy;&ucy;&lcy;&iecy;&mcy;, &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;  <a href="githooks.html#update">update</a> .</span></p> <p><span data-i18n="68123a6a37bb0f401b57f862c8a7ee17edc4a3c855b24e7c62cfacf8c52a3e8d/ec" data-source="Both standard output and standard error output are forwarded to &lt;code&gt;git send-pack&lt;/code&gt; on the other end, so you can simply &lt;code&gt;echo&lt;/code&gt; messages for the user." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;, &tcy;&acy;&kcy; &icy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &pcy;&iecy;&rcy;&iecy;&ncy;&acy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&acy;  <code>git send-pack</code>  &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ocy;&mcy; &kcy;&ocy;&ncy;&tscy;&iecy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;  <code>echo</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;.</span></p> <p><span data-i18n="24fbbe706e489ac2a86b4f27e3a5bae52b8ac5d26526e3c6817c1714bed3a424/0f" data-source="The number of push options given on the command line of &lt;code&gt;git push --push-option=...&lt;/code&gt; can be read from the environment variable &lt;code&gt;GIT_PUSH_OPTION_COUNT&lt;/code&gt;, and the options themselves are found in &lt;code&gt;GIT_PUSH_OPTION_0&lt;/code&gt;, &lt;code&gt;GIT_PUSH_OPTION_1&lt;/code&gt;,&amp;hellip;If it is negotiated to not use the push options phase, the environment variables will not be set. If the client selects to use push options, but doesn&amp;rsquo;t transmit any, the count variable will be set to zero, &lt;code&gt;GIT_PUSH_OPTION_COUNT=0&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &ocy;&pcy;&tscy;&icy;&jcy; push, &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;  <code>git push --push-option=...</code> , &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&ocy;&chcy;&icy;&tcy;&acy;&tcy;&softcy; &icy;&zcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_PUSH_OPTION_COUNT</code> , &acy; &scy;&acy;&mcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&tcy;&scy;&yacy; &vcy;  <code>GIT_PUSH_OPTION_0</code> ,  <code>GIT_PUSH_OPTION_1</code> ,&hellip; &IEcy;&scy;&lcy;&icy; &scy;&ocy;&gcy;&lcy;&acy;&scy;&ocy;&vcy;&acy;&ncy;&ocy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&zcy;&ucy; &ocy;&pcy;&tscy;&icy;&jcy; push, &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&rcy;&iecy;&dcy;&ycy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;. &IEcy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&pcy;&tscy;&icy;&jcy; push, &ncy;&ocy; &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy; &icy;&khcy;, &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; count &bcy;&ucy;&dcy;&iecy;&tcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&vcy; &ncy;&ocy;&lcy;&softcy;,  <code>GIT_PUSH_OPTION_COUNT=0</code>  .</span></p> <p><span data-i18n="7747a57f3bcd249176b1ab3202f6e49a9af5a19146b3dd7303c2ee2314d4f90c/cf" data-source="See the section on &amp;quot;Quarantine Environment&amp;quot; in &lt;a href=&quot;git-receive-pack&quot;&gt;git-receive-pack[1]&lt;/a&gt; for some caveats." onmousemove="i18n(this)">&Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&iecy;&rcy;&iecy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&mcy;. &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;  &quot;Quarantine Environment&quot;  &vcy;  <a href="git-receive-pack.html">git-receive-pack[1]</a> .</span></p> </div> <div> <h3 class="text-body-emphasis"  id="update"><span data-i18n="2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4/c9" data-source="update" onmousemove="i18n(this)">update</span></h3> <p><span data-i18n="ef702f795bb7f7379b94bd730be730f3e83b565e157c4d9fc54c112e54e1d56f/54" data-source="This hook is invoked by &lt;a href=&quot;git-receive-pack&quot;&gt;git-receive-pack[1]&lt;/a&gt; when it reacts to &lt;code&gt;git push&lt;/code&gt; and updates reference(s) in its repository. Just before updating the ref on the remote repository, the update hook is invoked. Its exit status determines the success or failure of the ref update." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-receive-pack.html">git-receive-pack[1]</a> , &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &rcy;&iecy;&acy;&gcy;&icy;&rcy;&ucy;&iecy;&tcy; &ncy;&acy;  <code>git push</code>  &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &scy;&vcy;&ocy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Ncy;&iecy;&pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy; &pcy;&iecy;&rcy;&iecy;&dcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy;&mcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;. &IEcy;&gcy;&ocy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &ucy;&scy;&pcy;&iecy;&khcy; &icy;&lcy;&icy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ucy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> <p><span data-i18n="fe5eed2f2b36316354b714e4bcc6bacaef45d93f4e902a4ff344d8ef178f8cb9/39" data-source="The hook executes once for each ref to be updated, and takes three parameters:" onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &icy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &tcy;&rcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;:</span></p> <div> <ul> <li> <p><span data-i18n="3d3d94a2ac873e6142acf16dc8e797889d17efb41a52f2780a0080f8f0e10fd5/8d" data-source="the name of the ref being updated," onmousemove="i18n(this)">&icy;&mcy;&yacy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;,</span></p> </li> <li> <p><span data-i18n="ef0d2824afa4d87e3570a089557334d9e507e0e8d9c2a9af1219d677af0c2e4f/d0" data-source="the old object name stored in the ref," onmousemove="i18n(this)">&scy;&tcy;&acy;&rcy;&ocy;&iecy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &khcy;&rcy;&acy;&ncy;&yacy;&shchcy;&iecy;&iecy;&scy;&yacy; &vcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;,</span></p> </li> <li> <p><span data-i18n="6905d69a2a2b6bf83f4cc8dbc409f9c9df850352c0de78201c603c3dcb0c7077/61" data-source="and the new object name to be stored in the ref." onmousemove="i18n(this)">&icy; &ncy;&ocy;&vcy;&ocy;&iecy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&ocy; &vcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;.</span></p> </li> </ul> </div> <p><span data-i18n="09582e58b73b3fd9322ab2cce4c17c3915a5cc991bf4138a682b7bef89dda541/f7" data-source="A zero exit from the update hook allows the ref to be updated. Exiting with a non-zero status prevents &lt;code&gt;git receive-pack&lt;/code&gt; from updating that ref." onmousemove="i18n(this)">&Ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&jcy; &vcy;&ycy;&khcy;&ocy;&dcy; &icy;&zcy; &khcy;&ucy;&kcy;&acy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &ncy;&iecy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy;  <code>git receive-pack</code>  &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &ecy;&tcy;&ucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;.</span></p> <p><span data-i18n="22cf8a5e792e9ef1860af25e0047ff9fceb8054df00d5896cdd2ed60c2dacbeb/e3" data-source="This hook can be used to prevent &lt;code&gt;forced&lt;/code&gt; update on certain refs by making sure that the object name is a commit object that is a descendant of the commit object named by the old object name. That is, to enforce a &amp;quot;fast-forward only&amp;quot; policy." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &kcy;&rcy;&yucy;&chcy;&ocy;&kcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&icy;&yacy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;  <code>forced</code>  &dcy;&lcy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &ucy;&bcy;&iecy;&dcy;&icy;&vcy;&shcy;&icy;&scy;&softcy;, &chcy;&tcy;&ocy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&mcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&tcy;&ocy;&mcy;&kcy;&ocy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &ncy;&acy;&zcy;&vcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy; &scy;&tcy;&acy;&rcy;&ocy;&mcy;&ucy; &icy;&mcy;&iecy;&ncy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;. &Tcy;&ocy; &iecy;&scy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&ocy;&bcy;&lcy;&yucy;&dcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&lcy;&icy;&tcy;&icy;&kcy;&icy;  &quot;fast-forward only&quot; .</span></p> <p><span data-i18n="336945c79045db454adbbccdaf7ba9c83162db32d9c6e0117631c31ad70e97e0/27" data-source="It could also be used to log the old..new status. However, it does not know the entire set of branches, so it would end up firing one e-mail per ref when used naively, though. The &lt;a href=&quot;#post-receive&quot;&gt;&lt;em&gt;post-receive&lt;/em&gt;&lt;/a&gt; hook is more suited to that." onmousemove="i18n(this)">&IEcy;&gcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;&tscy;&icy;&icy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&acy; &laquo;&scy;&tcy;&acy;&rcy;&ycy;&jcy;&hellip;&ncy;&ocy;&vcy;&ycy;&jcy;&raquo;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &ocy;&ncy; &ncy;&iecy; &zcy;&ncy;&acy;&iecy;&tcy; &vcy;&scy;&iecy;&gcy;&ocy; &ncy;&acy;&bcy;&ocy;&rcy;&acy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &pcy;&rcy;&icy; &ncy;&acy;&icy;&vcy;&ncy;&ocy;&mcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &ocy;&ncy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &ocy;&dcy;&ncy;&ocy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&iecy; &pcy;&icy;&scy;&softcy;&mcy;&ocy; &ncy;&acy; &kcy;&acy;&zhcy;&dcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;. &Kcy;&rcy;&yucy;&chcy;&ocy;&kcy;  <a href="githooks.html#post-receive">post-receive</a>  &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&gcy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &pcy;&ocy;&dcy;&khcy;&ocy;&dcy;&icy;&tcy;.</span></p> <p><span data-i18n="f384c51fcd31f33a7e25b5facce17bc48ef8f6d107ff3d8da00d5ad152e10648/fb" data-source="In an environment that restricts the users&amp;apos; access only to git commands over the wire, this hook can be used to implement access control without relying on filesystem ownership and group membership. See &lt;a href=&quot;git-shell&quot;&gt;git-shell[1]&lt;/a&gt; for how you might use the login shell to restrict the user&amp;rsquo;s access to only git commands." onmousemove="i18n(this)">&Vcy; &scy;&rcy;&iecy;&dcy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&vcy;&acy;&iecy;&tcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&jcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;  git  &pcy;&ocy; &pcy;&rcy;&ocy;&vcy;&ocy;&dcy;&ncy;&ocy;&jcy; &scy;&iecy;&tcy;&icy;, &ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &kcy;&ocy;&ncy;&tcy;&rcy;&ocy;&lcy;&yacy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&acy;, &ncy;&iecy; &pcy;&ocy;&lcy;&acy;&gcy;&acy;&yacy;&scy;&softcy; &ncy;&acy; &vcy;&lcy;&acy;&dcy;&iecy;&ncy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&ocy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ocy;&jcy; &icy; &chcy;&lcy;&iecy;&ncy;&scy;&tcy;&vcy;&ocy; &vcy; &gcy;&rcy;&ucy;&pcy;&pcy;&acy;&khcy;. &Scy;&mcy;.  <a href="git-shell.html">git-shell[1]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&ucy; &vcy;&khcy;&ocy;&dcy;&acy; &vcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&tcy;&softcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;  git .</span></p> <p><span data-i18n="68123a6a37bb0f401b57f862c8a7ee17edc4a3c855b24e7c62cfacf8c52a3e8d/ec" data-source="Both standard output and standard error output are forwarded to &lt;code&gt;git send-pack&lt;/code&gt; on the other end, so you can simply &lt;code&gt;echo&lt;/code&gt; messages for the user." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;, &tcy;&acy;&kcy; &icy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &pcy;&iecy;&rcy;&iecy;&ncy;&acy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&acy;  <code>git send-pack</code>  &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ocy;&mcy; &kcy;&ocy;&ncy;&tscy;&iecy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;  <code>echo</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;.</span></p> <p><span data-i18n="4e77351425b41cf66b109a83a435beef3c14aa7b5d040201466a3d7aa4a73602/c5" data-source="The default &lt;code&gt;update&lt;/code&gt; hook, when enabled&amp;mdash;&amp;ZeroWidthSpace;and with &lt;code&gt;hooks.allowunannotated&lt;/code&gt; config option unset or set to false&amp;mdash;&amp;ZeroWidthSpace;prevents unannotated tags from being pushed." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>update</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>hooks.allowunannotated</code>  &ncy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &icy;&lcy;&icy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &vcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; false, &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&ucy; &ncy;&iecy;&acy;&ncy;&ncy;&ocy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &tcy;&iecy;&gcy;&ocy;&vcy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="proc-receive"><span data-i18n="4647b9e8b331c2049ae6e525a50dfb0b42903431ef7a96fae476f71508e4c748/21" data-source="proc-receive" onmousemove="i18n(this)">proc-receive</span></h3> <p><span data-i18n="9faa205d1eb3be55852d53d1280f2f1894e66b04a3f1c227ab4dc5e5dc3876c8/be" data-source="This hook is invoked by &lt;a href=&quot;git-receive-pack&quot;&gt;git-receive-pack[1]&lt;/a&gt;. If the server has set the multi-valued config variable &lt;code&gt;receive.procReceiveRefs&lt;/code&gt;, and the commands sent to &lt;code&gt;receive-pack&lt;/code&gt; have matching reference names, these commands will be executed by this hook, instead of by the internal &lt;code&gt;execute_commands()&lt;/code&gt; function. This hook is responsible for updating the relevant references and reporting the results back to &lt;code&gt;receive-pack&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-receive-pack.html">git-receive-pack[1]</a> . &IEcy;&scy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&lcy; &mcy;&ncy;&ocy;&gcy;&ocy;&zcy;&ncy;&acy;&chcy;&ncy;&ucy;&yucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>receive.procReceiveRefs</code>  &icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy;  <code>receive-pack</code> , &icy;&mcy;&iecy;&yucy;&tcy; &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&yucy;&shchcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&ocy;&chcy;&ncy;&ycy;&iecy; &icy;&mcy;&iecy;&ncy;&acy;, &ecy;&tcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &bcy;&ucy;&dcy;&ucy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy; &ecy;&tcy;&icy;&mcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ocy;&mcy;, &acy; &ncy;&iecy; &vcy;&ncy;&ucy;&tcy;&rcy;&iecy;&ncy;&ncy;&iecy;&jcy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&iecy;&jcy;  <code>execute_commands()</code> . &Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &ocy;&tcy;&vcy;&iecy;&chcy;&acy;&iecy;&tcy; &zcy;&acy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&ucy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ocy;&vcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &vcy;  <code>receive-pack</code> .</span></p> <p><span data-i18n="4b6b15cd90c5e067bca01d6f55d1a19a7ac8e03903732a1afe6c03b974d129ae/15" data-source="This hook executes once for the receive operation. It takes no arguments, but uses a pkt-line format protocol to communicate with &lt;code&gt;receive-pack&lt;/code&gt; to read commands, push-options and send results. In the following example for the protocol, the letter &lt;code&gt;S&lt;/code&gt; stands for &lt;code&gt;receive-pack&lt;/code&gt; and the letter &lt;code&gt;H&lt;/code&gt; stands for this hook." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &dcy;&lcy;&yacy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&rcy;&icy;&iecy;&mcy;&acy;. &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;, &ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; pkt-line &dcy;&lcy;&yacy; &scy;&vcy;&yacy;&zcy;&icy; &scy;  <code>receive-pack</code>  &dcy;&lcy;&yacy; &chcy;&tcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;, &ocy;&pcy;&tscy;&icy;&jcy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy; &icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ocy;&vcy;. &Vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&mcy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy;&iecy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy; &bcy;&ucy;&kcy;&vcy;&acy;  <code>S</code>  &ocy;&bcy;&ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;  <code>receive-pack</code> , &acy; &bcy;&ucy;&kcy;&vcy;&acy;  <code>H</code>  &mdash; &ecy;&tcy;&ocy;&tcy; &kcy;&rcy;&yucy;&chcy;&ocy;&kcy;.</span></p> <div> <div> <pre class="hljs language-makefile"><span class="hljs-comment" title="# Version and features negotiation."># &Ocy;&bcy;&scy;&ucy;&zhcy;&dcy;&iecy;&ncy;&icy;&iecy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &icy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&jcy;.</span>
<span class="hljs-section">S: PKT-LINE(version=1\0push-options atomic...)</span>
<span class="hljs-section">S: flush-pkt</span>
<span class="hljs-section">H: PKT-LINE(version=1\0push-options...)</span>
<span class="hljs-section">H: flush-pkt</span></pre> </div> </div> <div> <div> <pre class="hljs language-vbnet"># Send commands <span class="hljs-keyword">from</span> server <span class="hljs-keyword">to</span> the hook.
<span class="hljs-symbol">S:</span> PKT-LINE(&lt;old-oid&gt; &lt;<span class="hljs-built_in">new</span>-oid&gt; &lt;ref&gt;)
<span class="hljs-symbol">S:</span> ... ...
<span class="hljs-symbol">S:</span> flush-pkt
# Send push-options only <span class="hljs-keyword">if</span> the <span class="hljs-comment" title="&apos;push-options&apos; feature is enabled.">&Fcy;&ucy;&ncy;&kcy;&tscy;&icy;&yacy; &laquo;push-options&raquo; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&acy;.</span>
<span class="hljs-symbol">S:</span> PKT-LINE(push-<span class="hljs-keyword">option</span>)
<span class="hljs-symbol">S:</span> ... ...
<span class="hljs-symbol">S:</span> flush-pkt</pre> </div> </div> <div> <div> <pre class="hljs language-makefile" data-highlighted="yes"><span class="hljs-comment" title="# Receive results from the hook."># &Pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&mcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&ycy; &ocy;&tcy; &khcy;&ucy;&kcy;&acy;.</span>
<span class="hljs-comment" title="# OK, run this command successfully."># &Ocy;&Kcy;, &ucy;&scy;&pcy;&iecy;&shcy;&ncy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy; &ecy;&tcy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;.</span>
<span class="hljs-section">H: PKT-LINE(ok &lt;ref&gt;)</span>
<span class="hljs-comment" title="# NO, I reject it."># &Ncy;&IEcy;&Tcy;, &yacy; &ocy;&tcy;&vcy;&iecy;&rcy;&gcy;&acy;&yucy; &ecy;&tcy;&ocy;.</span>
<span class="hljs-section">H: PKT-LINE(ng &lt;ref&gt; &lt;reason&gt;)</span>
<span class="hljs-comment" title="# Fall through, let &apos;receive-pack&apos; execute it."># &Pcy;&rcy;&ocy;&vcy;&acy;&lcy;&icy;&tcy;&softcy;&scy;&yacy;, &pcy;&ucy;&scy;&tcy;&softcy; &apos;receive-pack&apos; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy; &iecy;&gcy;&ocy;.</span>
<span class="hljs-section">H: PKT-LINE(ok &lt;ref&gt;)</span>
<span class="hljs-section">H: PKT-LINE(option fall-through)</span>
<span class="hljs-comment" title="# OK, but has an alternate reference.  The alternate reference name"># &KHcy;&ocy;&rcy;&ocy;&shcy;&ocy;, &ncy;&ocy; &iecy;&scy;&tcy;&softcy; &acy;&lcy;&softcy;&tcy;&iecy;&rcy;&ncy;&acy;&tcy;&icy;&vcy;&ncy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy;. &Acy;&lcy;&softcy;&tcy;&iecy;&rcy;&ncy;&acy;&tcy;&icy;&vcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;</span>
<span class="hljs-comment" title="# and other status can be given in option directives."># &icy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &vcy; &dcy;&icy;&rcy;&iecy;&kcy;&tcy;&icy;&vcy;&acy;&khcy; &ocy;&pcy;&tscy;&icy;&jcy;.</span>
<span class="hljs-section">H: PKT-LINE(ok &lt;ref&gt;)</span>
<span class="hljs-section">H: PKT-LINE(option refname &lt;refname&gt;)</span>
<span class="hljs-section">H: PKT-LINE(option old-oid &lt;old-oid&gt;)</span>
<span class="hljs-section">H: PKT-LINE(option new-oid &lt;new-oid&gt;)</span>
<span class="hljs-section">H: PKT-LINE(option forced-update)</span>
<span class="hljs-section">H: ... ...</span>
<span class="hljs-section">H: flush-pkt</span></pre> </div> </div> <p><span data-i18n="847ba6ee1b2b64fb98e811745a7b8bf6e745443121bc66b36aec2b9bf6783cb9/7d" data-source="Each command for the &lt;code&gt;proc-receive&lt;/code&gt; hook may point to a pseudo-reference and always has a zero-old as its old-oid, while the &lt;code&gt;proc-receive&lt;/code&gt; hook may update an alternate reference and the alternate reference may exist already with a non-zero old-oid. For this case, this hook will use &amp;quot;option&amp;quot; directives to report extended attributes for the reference given by the leading &amp;quot;ok&amp;quot; directive." onmousemove="i18n(this)">&Kcy;&acy;&zhcy;&dcy;&acy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;  <code>proc-receive</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &ncy;&acy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&scy;&scy;&ycy;&lcy;&kcy;&ucy; &icy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &icy;&mcy;&iecy;&iecy;&tcy; &ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&jcy; &scy;&tcy;&acy;&rcy;&ycy;&jcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &scy;&tcy;&acy;&rcy;&ocy;&gcy;&ocy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&acy;, &vcy; &tcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>proc-receive</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; &acy;&lcy;&softcy;&tcy;&iecy;&rcy;&ncy;&acy;&tcy;&icy;&vcy;&ncy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;, &icy; &acy;&lcy;&softcy;&tcy;&iecy;&rcy;&ncy;&acy;&tcy;&icy;&vcy;&ncy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&rcy;&ycy;&mcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&ocy;&mcy;. . &Vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&icy;&rcy;&iecy;&kcy;&tcy;&icy;&vcy;&ycy;  &quot;option&quot;  &dcy;&lcy;&yacy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ocy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&ncy;&ycy;&khcy; &acy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;&acy;&khcy; &dcy;&lcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ocy;&jcy; &vcy;&iecy;&dcy;&ucy;&shchcy;&iecy;&jcy; &dcy;&icy;&rcy;&iecy;&kcy;&tcy;&icy;&vcy;&ocy;&jcy;  &quot;ok&quot; .</span></p> <p><span data-i18n="99eead4808c9d11f7b06b6ed100f50eb37be5261447fac9def7d597a28f9303c/50" data-source="The report of the commands of this hook should have the same order as the input. The exit status of the &lt;code&gt;proc-receive&lt;/code&gt; hook only determines the success or failure of the group of commands sent to it, unless atomic push is in use." onmousemove="i18n(this)">&Ocy;&tcy;&chcy;&iecy;&tcy; &ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&khcy; &ecy;&tcy;&ocy;&gcy;&ocy; &khcy;&ucy;&kcy;&acy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &icy;&mcy;&iecy;&tcy;&softcy; &tcy;&ocy;&tcy; &zhcy;&iecy; &pcy;&ocy;&rcy;&yacy;&dcy;&ocy;&kcy;, &chcy;&tcy;&ocy; &icy; &vcy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;. &Scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;  <code>proc-receive</code>  &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ucy;&scy;&pcy;&iecy;&khcy; &icy;&lcy;&icy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ucy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &iecy;&mcy;&ucy; &gcy;&rcy;&ucy;&pcy;&pcy;&ycy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;, &iecy;&scy;&lcy;&icy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &acy;&tcy;&ocy;&mcy;&acy;&rcy;&ncy;&acy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&acy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="post-receive"><span data-i18n="d8c38364b11413bbc0a55b7456aaf39cc47eded3291d83f5650e186d5fc653eb/11" data-source="post-receive" onmousemove="i18n(this)">post-receive</span></h3> <p><span data-i18n="dd29f3c6b9965d6a79ca9a3458e78400ec9afc1f6d330692f5c4ee3366cfa75e/3a" data-source="This hook is invoked by &lt;a href=&quot;git-receive-pack&quot;&gt;git-receive-pack[1]&lt;/a&gt; when it reacts to &lt;code&gt;git push&lt;/code&gt; and updates reference(s) in its repository. It executes on the remote repository once after all the refs have been updated." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-receive-pack.html">git-receive-pack[1]</a> , &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &rcy;&iecy;&acy;&gcy;&icy;&rcy;&ucy;&iecy;&tcy; &ncy;&acy;  <code>git push</code>  &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &scy;&vcy;&ocy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Ocy;&ncy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;.</span></p> <p><span data-i18n="d74002a78b6c6bf4ac77ddbbd913d32d373f7ab1f2f68d44fc83f6fc15c2a732/0d" data-source="This hook executes once for the receive operation. It takes no arguments, but gets the same information as the &lt;a href=&quot;#pre-receive&quot;&gt;&lt;em&gt;pre-receive&lt;/em&gt;&lt;/a&gt; hook does on its standard input." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &dcy;&lcy;&yacy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&rcy;&icy;&iecy;&mcy;&acy;. &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&vcy;, &ncy;&ocy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; &tcy;&ucy; &zhcy;&iecy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy;, &chcy;&tcy;&ocy; &icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <a href="githooks.html#pre-receive">pre-receive</a>  &ncy;&acy; &scy;&vcy;&ocy;&jcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy;.</span></p> <p><span data-i18n="c26a7b764eb3084c6bcfb3c609b2097f95c1257deee4a456f8d5a3fe4901770e/9a" data-source="This hook does not affect the outcome of &lt;code&gt;git receive-pack&lt;/code&gt;, as it is called after the real work is done." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &ncy;&iecy; &vcy;&lcy;&icy;&yacy;&iecy;&tcy; &ncy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;  <code>git receive-pack</code> , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ocy;&ncy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &rcy;&iecy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;.</span></p> <p><span data-i18n="17c67236d830321c012da51ebd49cf9c8e4e0b34e5b4612057952d0a22798a58/24" data-source="This supersedes the &lt;a href=&quot;#post-update&quot;&gt;&lt;em&gt;post-update&lt;/em&gt;&lt;/a&gt; hook in that it gets both old and new values of all the refs in addition to their names." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <a href="githooks.html#post-update">post-update</a> , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ocy;&ncy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; &kcy;&acy;&kcy; &scy;&tcy;&acy;&rcy;&ycy;&iecy;, &tcy;&acy;&kcy; &icy; &ncy;&ocy;&vcy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &vcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &kcy; &icy;&khcy; &icy;&mcy;&iecy;&ncy;&acy;&mcy;.</span></p> <p><span data-i18n="68123a6a37bb0f401b57f862c8a7ee17edc4a3c855b24e7c62cfacf8c52a3e8d/ec" data-source="Both standard output and standard error output are forwarded to &lt;code&gt;git send-pack&lt;/code&gt; on the other end, so you can simply &lt;code&gt;echo&lt;/code&gt; messages for the user." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;, &tcy;&acy;&kcy; &icy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &pcy;&iecy;&rcy;&iecy;&ncy;&acy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&acy;  <code>git send-pack</code>  &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ocy;&mcy; &kcy;&ocy;&ncy;&tscy;&iecy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;  <code>echo</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;.</span></p> <p><span data-i18n="e0eeaa92552589dc80f8e5b9780251589a13b4f31c483cd40e8123cb0a91a992/ac" data-source="The default &lt;code&gt;post-receive&lt;/code&gt; hook is empty, but there is a sample script &lt;code&gt;post-receive-email&lt;/code&gt; provided in the &lt;code&gt;contrib/hooks&lt;/code&gt; directory in Git distribution, which implements sending commit emails." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>post-receive</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &pcy;&ucy;&scy;&tcy;, &ncy;&ocy; &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;  <code>contrib/hooks</code>  &dcy;&icy;&scy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;&icy;&vcy;&acy;  Git  &icy;&mcy;&iecy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&rcy;&acy;&zcy;&iecy;&tscy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy;  <code>post-receive-email</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&ucy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&ucy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&jcy; &ocy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &pcy;&ocy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&jcy; &pcy;&ocy;&chcy;&tcy;&iecy;.</span></p> <p><span data-i18n="24fbbe706e489ac2a86b4f27e3a5bae52b8ac5d26526e3c6817c1714bed3a424/0f" data-source="The number of push options given on the command line of &lt;code&gt;git push --push-option=...&lt;/code&gt; can be read from the environment variable &lt;code&gt;GIT_PUSH_OPTION_COUNT&lt;/code&gt;, and the options themselves are found in &lt;code&gt;GIT_PUSH_OPTION_0&lt;/code&gt;, &lt;code&gt;GIT_PUSH_OPTION_1&lt;/code&gt;,&amp;hellip;If it is negotiated to not use the push options phase, the environment variables will not be set. If the client selects to use push options, but doesn&amp;rsquo;t transmit any, the count variable will be set to zero, &lt;code&gt;GIT_PUSH_OPTION_COUNT=0&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &ocy;&pcy;&tscy;&icy;&jcy; push, &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;  <code>git push --push-option=...</code> , &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&ocy;&chcy;&icy;&tcy;&acy;&tcy;&softcy; &icy;&zcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy;  <code>GIT_PUSH_OPTION_COUNT</code> , &acy; &scy;&acy;&mcy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &ncy;&acy;&khcy;&ocy;&dcy;&yacy;&tcy;&scy;&yacy; &vcy;  <code>GIT_PUSH_OPTION_0</code> ,  <code>GIT_PUSH_OPTION_1</code> ,&hellip; &IEcy;&scy;&lcy;&icy; &scy;&ocy;&gcy;&lcy;&acy;&scy;&ocy;&vcy;&acy;&ncy;&ocy; &ncy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&zcy;&ucy; &ocy;&pcy;&tscy;&icy;&jcy; push, &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&rcy;&iecy;&dcy;&ycy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;. &IEcy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &ocy;&pcy;&tscy;&icy;&jcy; push, &ncy;&ocy; &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy; &icy;&khcy;, &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; count &bcy;&ucy;&dcy;&iecy;&tcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy; &ZeroWidthSpace;&ZeroWidthSpace;&vcy; &ncy;&ocy;&lcy;&softcy;,  <code>GIT_PUSH_OPTION_COUNT=0</code>  .</span></p> </div> <div> <h3 class="text-body-emphasis"  id="post-update"><span data-i18n="03d6947035b53a460ea89fe7ae4267b0ca091ed2c5e85a8c2fb96359832d87bd/7c" data-source="post-update" onmousemove="i18n(this)">post-update</span></h3> <p><span data-i18n="dd29f3c6b9965d6a79ca9a3458e78400ec9afc1f6d330692f5c4ee3366cfa75e/3a" data-source="This hook is invoked by &lt;a href=&quot;git-receive-pack&quot;&gt;git-receive-pack[1]&lt;/a&gt; when it reacts to &lt;code&gt;git push&lt;/code&gt; and updates reference(s) in its repository. It executes on the remote repository once after all the refs have been updated." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-receive-pack.html">git-receive-pack[1]</a> , &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &rcy;&iecy;&acy;&gcy;&icy;&rcy;&ucy;&iecy;&tcy; &ncy;&acy;  <code>git push</code>  &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &scy;&vcy;&ocy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Ocy;&ncy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &ocy;&dcy;&icy;&ncy; &rcy;&acy;&zcy; &pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;.</span></p> <p><span data-i18n="9195517e204eed820291325c68207c3478905618ca4b611c55d4135a15738136/96" data-source="It takes a variable number of parameters, each of which is the name of ref that was actually updated." onmousemove="i18n(this)">&Ocy;&ncy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&iecy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy;, &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &icy;&zcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &bcy;&ycy;&lcy;&acy; &fcy;&acy;&kcy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&acy;.</span></p> <p><span data-i18n="2c995bf125c27ace69f529188526ac60eaa7ad588d4a707ca6121cb9440b3ad8/02" data-source="This hook is meant primarily for notification, and cannot affect the outcome of &lt;code&gt;git receive-pack&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &vcy; &pcy;&iecy;&rcy;&vcy;&ucy;&yucy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &dcy;&lcy;&yacy; &ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&vcy;&lcy;&icy;&yacy;&tcy;&softcy; &ncy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;  <code>git receive-pack</code> .</span></p> <p><span data-i18n="276941955ab3a6a55cd62586538bcddb73795ad8ede5a40a026fc2cfb2242365/cd" data-source="The &lt;code&gt;post-update&lt;/code&gt; hook can tell what are the heads that were pushed, but it does not know what their original and updated values are, so it is a poor place to do log old..new. The &lt;a href=&quot;#post-receive&quot;&gt;&lt;em&gt;post-receive&lt;/em&gt;&lt;/a&gt; hook does get both original and updated values of the refs. You might consider it instead if you need them." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>post-update</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy;, &kcy;&acy;&kcy;&icy;&iecy; &gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &bcy;&ycy;&lcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy;, &ncy;&ocy; &ocy;&ncy; &ncy;&iecy; &zcy;&ncy;&acy;&iecy;&tcy;, &kcy;&acy;&kcy;&ocy;&vcy;&ycy; &icy;&khcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy; &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &ecy;&tcy;&ocy; &pcy;&lcy;&ocy;&khcy;&ocy;&iecy; &mcy;&iecy;&scy;&tcy;&ocy; &dcy;&lcy;&yacy; &vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy; &zhcy;&ucy;&rcy;&ncy;&acy;&lcy;&acy; &laquo;&scy;&tcy;&acy;&rcy;&ocy;&iecy;...&ncy;&ocy;&vcy;&ocy;&iecy;&raquo;. &KHcy;&ucy;&kcy;  <a href="githooks.html#post-receive">post-receive</a>  &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; &kcy;&acy;&kcy; &icy;&scy;&khcy;&ocy;&dcy;&ncy;&ycy;&iecy;, &tcy;&acy;&kcy; &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;. &Vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &rcy;&acy;&scy;&scy;&mcy;&ocy;&tcy;&rcy;&iecy;&tcy;&softcy; &ecy;&tcy;&ocy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &vcy;&acy;&mcy; &ncy;&ucy;&zhcy;&ncy;&ycy;.</span></p> <p><span data-i18n="f06d2ec451fcbc405791edab1bda51e3ad8c4f8bc8b2dde470a4dc6db5851723/33" data-source="When enabled, the default &lt;code&gt;post-update&lt;/code&gt; hook runs &lt;code&gt;git update-server-info&lt;/code&gt; to keep the information used by dumb transports (e.g., HTTP) up to date. If you are publishing a Git repository that is accessible via HTTP, you should probably enable this hook." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;, &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>post-update</code>  &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;  <code>git update-server-info</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&tcy;&softcy; &acy;&kcy;&tcy;&ucy;&acy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&softcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ocy;&jcy; &pcy;&rcy;&ocy;&scy;&tcy;&ycy;&mcy;&icy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;&acy;&mcy;&icy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, HTTP). &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &pcy;&ucy;&bcy;&lcy;&icy;&kcy;&ucy;&iecy;&tcy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;  Git , &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&jcy; &chcy;&iecy;&rcy;&iecy;&zcy; HTTP, &vcy;&acy;&mcy;, &vcy;&iecy;&rcy;&ocy;&yacy;&tcy;&ncy;&ocy;, &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;.</span></p> <p><span data-i18n="68123a6a37bb0f401b57f862c8a7ee17edc4a3c855b24e7c62cfacf8c52a3e8d/ec" data-source="Both standard output and standard error output are forwarded to &lt;code&gt;git send-pack&lt;/code&gt; on the other end, so you can simply &lt;code&gt;echo&lt;/code&gt; messages for the user." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy;, &tcy;&acy;&kcy; &icy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &pcy;&iecy;&rcy;&iecy;&ncy;&acy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&acy;  <code>git send-pack</code>  &ncy;&acy; &dcy;&rcy;&ucy;&gcy;&ocy;&mcy; &kcy;&ocy;&ncy;&tscy;&iecy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;  <code>echo</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_reference_transaction"><span data-i18n="1b25f1650b5f30e6d746fe84ff648bba0b944d4449b0e8155bdfa42549b95f40/a4" data-source="reference-transaction" onmousemove="i18n(this)">reference-transaction</span></h3> <p><span data-i18n="1be61a523f0ee0e70a2a4284f9cdbc9889969b0585053f0fec8cc53f32fca4f5/c9" data-source="This hook is invoked by any Git command that performs reference updates. It executes whenever a reference transaction is prepared, committed or aborted and may thus get called multiple times. The hook does not cover symbolic references (but that may change in the future)." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &lcy;&yucy;&bcy;&ocy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  Git , &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&shchcy;&iecy;&jcy; &ecy;&tcy;&acy;&lcy;&ocy;&ncy;&ncy;&ycy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;. &Ocy;&ncy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy;&scy;&yacy;&kcy;&icy;&jcy; &rcy;&acy;&zcy;, &kcy;&ocy;&gcy;&dcy;&acy; &ecy;&tcy;&acy;&lcy;&ocy;&ncy;&ncy;&acy;&yacy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yacy; &gcy;&ocy;&tcy;&ocy;&vcy;&icy;&tcy;&scy;&yacy;, &fcy;&icy;&kcy;&scy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &icy;&lcy;&icy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;, &icy; &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &rcy;&acy;&zcy;. &KHcy;&ucy;&kcy; &ncy;&iecy; &rcy;&acy;&scy;&pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &ncy;&acy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; (&ncy;&ocy; &ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy;).</span></p> <p><span data-i18n="620857a3d63c2e05f42c551e6a870cbb33d40bf5b49cf8b899503519c436050f/60" data-source="The hook takes exactly one argument, which is the current state the given reference transaction is in:" onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &rcy;&ocy;&vcy;&ncy;&ocy; &ocy;&dcy;&icy;&ncy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &dcy;&acy;&ncy;&ncy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&chcy;&ncy;&acy;&yacy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yacy;:</span></p> <div> <ul> <li> <p><span data-i18n="e319c72cee9716a7621eaf79bef2accef925d878c80713874dcef386731b7006/d6" data-source="&amp;quot;prepared&amp;quot;: All reference updates have been queued to the transaction and references were locked on disk." onmousemove="i18n(this)">&quot;prepared&quot; : &Vcy;&scy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &bcy;&ycy;&lcy;&icy; &pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &vcy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&icy;, &acy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &zcy;&acy;&bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ycy; &ncy;&acy; &dcy;&icy;&scy;&kcy;&iecy;.</span></p> </li> <li> <p><span data-i18n="998ef1595647f3923a22a03cf02245677b0582e5ac804d42db0a73d4c1fefa02/de" data-source="&amp;quot;committed&amp;quot;: The reference transaction was committed and all references now have their respective new value." onmousemove="i18n(this)">&quot;committed&quot; : &Scy;&scy;&ycy;&lcy;&ocy;&chcy;&ncy;&acy;&yacy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yacy; &bcy;&ycy;&lcy;&acy; &zcy;&acy;&fcy;&icy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&acy;, &icy; &vcy;&scy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &tcy;&iecy;&pcy;&iecy;&rcy;&softcy; &icy;&mcy;&iecy;&yucy;&tcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &ncy;&ocy;&vcy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;.</span></p> </li> <li> <p><span data-i18n="d8ada44890837e12a753a2f8fc0da273fb526de5098e4db3fa8e40105e157cd4/5a" data-source="&amp;quot;aborted&amp;quot;: The reference transaction was aborted, no changes were performed and the locks have been released." onmousemove="i18n(this)">&quot;aborted&quot; : &Ecy;&tcy;&acy;&lcy;&ocy;&ncy;&ncy;&acy;&yacy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yacy; &bcy;&ycy;&lcy;&acy; &pcy;&rcy;&iecy;&rcy;&vcy;&acy;&ncy;&acy;, &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &ncy;&iecy; &bcy;&ycy;&lcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&ocy;, &bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&kcy;&icy; &scy;&ncy;&yacy;&tcy;&ycy;.</span></p> </li> </ul> </div> <p><span data-i18n="606be775abb576c4ccfedcd178eb7d038e8baaf90d02f156fda3fb19c5d785a1/0e" data-source="For each reference update that was added to the transaction, the hook receives on standard input a line of the format:" onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &bcy;&ycy;&lcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ocy; &vcy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yucy;, &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;:</span></p> <div> <div> <pre class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">old-value</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">new-value</span>&gt;</span> SP <span class="hljs-tag">&lt;<span class="hljs-name">ref-name</span>&gt;</span> LF</pre> </div> </div> <p><span data-i18n="e218df86187d2d81995245cb9ad12e41c9e8c9b6de3135ab7971ee7d6403ccea/36" data-source="where &lt;code&gt;&amp;lt;old-value&amp;gt;&lt;/code&gt; is the old object name passed into the reference transaction, &lt;code&gt;&amp;lt;new-value&amp;gt;&lt;/code&gt; is the new object name to be stored in the ref and &lt;code&gt;&amp;lt;ref-name&amp;gt;&lt;/code&gt; is the full name of the ref. When force updating the reference regardless of its current value or when the reference is to be created anew, &lt;code&gt;&amp;lt;old-value&amp;gt;&lt;/code&gt; is the all-zeroes object name. To distinguish these cases, you can inspect the current value of &lt;code&gt;&amp;lt;ref-name&amp;gt;&lt;/code&gt; via &lt;code&gt;git rev-parse&lt;/code&gt;." onmousemove="i18n(this)">&gcy;&dcy;&iecy;  <code>&lt;old-value&gt;</code>  &mdash; &icy;&mcy;&yacy; &scy;&tcy;&acy;&rcy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&ncy;&ncy;&ocy;&iecy; &vcy; &scy;&scy;&ycy;&lcy;&ocy;&chcy;&ncy;&ucy;&yucy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&yucy;,  <code>&lt;new-value&gt;</code>  &mdash; &ncy;&ocy;&vcy;&ocy;&iecy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&ocy; &vcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;, &acy;  <code>&lt;ref-name&gt;</code>  &mdash; &pcy;&ocy;&lcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;. &Pcy;&rcy;&icy; &pcy;&rcy;&icy;&ncy;&ucy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&mcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy; &iecy;&iecy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &kcy;&ocy;&gcy;&dcy;&acy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &bcy;&ycy;&tcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&acy; &zcy;&acy;&ncy;&ocy;&vcy;&ocy;,  <code>&lt;old-value&gt;</code>  &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &scy;&ocy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &icy;&zcy; &vcy;&scy;&iecy;&khcy; &ncy;&ucy;&lcy;&iecy;&jcy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&tcy;&softcy; &ecy;&tcy;&icy; &scy;&lcy;&ucy;&chcy;&acy;&icy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>&lt;ref-name&gt;</code>  &chcy;&iecy;&rcy;&iecy;&zcy;  <code>git rev-parse</code> .</span></p> <p><span data-i18n="1126cd3d4e07171061d289fb35b1d92fe7cf788decec7ce75aa60ca671376e29/15" data-source="The exit status of the hook is ignored for any state except for the &amp;quot;prepared&amp;quot; state. In the &amp;quot;prepared&amp;quot; state, a non-zero exit status will cause the transaction to be aborted. The hook will not be called with &amp;quot;aborted&amp;quot; state in that case." onmousemove="i18n(this)">&Scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &lcy;&yucy;&bcy;&ocy;&gcy;&ocy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy;, &kcy;&rcy;&ocy;&mcy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&yacy;  &quot;prepared&quot; . &Vcy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&icy;  &quot;prepared&quot;  &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&jcy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&ncy;&icy;&yucy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&icy;. &Vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &scy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;&mcy;  &quot;aborted&quot; .</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_push_to_checkout"><span data-i18n="df4044b0e066e35a41dbeee8d8aee9bb5d712073950316233ebca2aa602566fb/d2" data-source="push-to-checkout" onmousemove="i18n(this)">push-to-checkout</span></h3> <p><span data-i18n="4546ea771304b057a4ba25e0fde59db187b4802b3bf0644e18a3c4d3c0a4bcc3/9e" data-source="This hook is invoked by &lt;a href=&quot;git-receive-pack&quot;&gt;git-receive-pack[1]&lt;/a&gt; when it reacts to &lt;code&gt;git push&lt;/code&gt; and updates reference(s) in its repository, and when the push tries to update the branch that is currently checked out and the &lt;code&gt;receive.denyCurrentBranch&lt;/code&gt; configuration variable is set to &lt;code&gt;updateInstead&lt;/code&gt;. Such a push by default is refused if the working tree and the index of the remote repository has any difference from the currently checked out commit; when both the working tree and the index match the current commit, they are updated to match the newly pushed tip of the branch. This hook is to be used to override the default behaviour." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-receive-pack.html">git-receive-pack[1]</a> , &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &rcy;&iecy;&acy;&gcy;&icy;&rcy;&ucy;&iecy;&tcy; &ncy;&acy;  <code>git push</code>  &icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &scy;&vcy;&ocy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &kcy;&ocy;&gcy;&dcy;&acy; push &pcy;&ycy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &vcy;&iecy;&tcy;&kcy;&ucy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &vcy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&acy;, &icy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>receive.denyCurrentBranch</code>  &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>updateInstead</code>  . &Tcy;&acy;&kcy;&acy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&acy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ocy;&tcy;&kcy;&lcy;&ocy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &ocy;&tcy;&lcy;&icy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &ocy;&tcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &icy;&zcy;&vcy;&lcy;&iecy;&chcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;; &kcy;&ocy;&gcy;&dcy;&acy; &icy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;, &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&mcy;&ucy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ucy;, &ocy;&ncy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy;, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy;&ncy;&ocy;&vcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&mcy;&ucy; &kcy;&ocy;&ncy;&chcy;&icy;&kcy;&ucy; &vcy;&iecy;&tcy;&kcy;&icy;. &Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;.</span></p> <p><span data-i18n="cdc2b059f4b5f48e2d0453a5aaf0a3ce09d75782a3ab04c1004b31779772d4f7/1a" data-source="The hook receives the commit with which the tip of the current branch is going to be updated. It can exit with a non-zero status to refuse the push (when it does so, it must not modify the index or the working tree). Or it can make any necessary changes to the working tree and to the index to bring them to the desired state when the tip of the current branch is updated to the new commit, and exit with a zero status." onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;, &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &kcy;&ocy;&ncy;&chcy;&icy;&kcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy;. &Ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ycy;&jcy;&tcy;&icy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&tcy;&kcy;&acy;&zcy;&acy;&tcy;&softcy;&scy;&yacy; &ocy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; (&pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &ocy;&ncy; &ncy;&iecy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&tcy;&softcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &icy;&lcy;&icy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;). &Lcy;&icy;&bcy;&ocy; &ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ncy;&iecy;&scy;&tcy;&icy; &lcy;&yucy;&bcy;&ycy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy; &icy; &icy;&ncy;&dcy;&iecy;&kcy;&scy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &icy;&khcy; &vcy; &ncy;&ucy;&zhcy;&ncy;&ocy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;, &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&iecy;&rcy;&khcy;&ucy;&shcy;&kcy;&acy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &vcy;&iecy;&tcy;&kcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&scy;&yacy; &dcy;&ocy; &ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &icy; &vcy;&ycy;&jcy;&tcy;&icy; &scy; &ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy;.</span></p> <p><span data-i18n="44895802543b7367d9f63c7bb8f637d4e41d2aba98119104258d7fc989f2cf8c/00" data-source="For example, the hook can simply run &lt;code&gt;git read-tree -u -m HEAD &amp;quot;$1&amp;quot;&lt;/code&gt; in order to emulate &lt;code&gt;git fetch&lt;/code&gt; that is run in the reverse direction with &lt;code&gt;git push&lt;/code&gt;, as the two-tree form of &lt;code&gt;git read-tree -u -m&lt;/code&gt; is essentially the same as &lt;code&gt;git switch&lt;/code&gt; or &lt;code&gt;git checkout&lt;/code&gt; that switches branches while keeping the local changes in the working tree that do not interfere with the difference between the branches." onmousemove="i18n(this)">&Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy;  <code>git read-tree -u -m HEAD &quot;$1&quot;</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &ecy;&mcy;&ucy;&lcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;  <code>git fetch</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy;&mcy; &ncy;&acy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&icy; &scy;  <code>git push</code> , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &dcy;&vcy;&ucy;&khcy;&dcy;&iecy;&rcy;&iecy;&vcy;&softcy;&iecy;&vcy;&acy;&yacy; &fcy;&ocy;&rcy;&mcy;&acy;  <code>git read-tree -u -m</code>  &pcy;&ocy; &scy;&ucy;&tcy;&icy; &tcy;&acy;&kcy;&acy;&yacy; &zhcy;&iecy;, &kcy;&acy;&kcy;  <code>git switch</code>  &icy;&lcy;&icy;  <code>git checkout</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&iecy;&rcy;&iecy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &vcy;&iecy;&tcy;&vcy;&icy;, &scy;&ocy;&khcy;&rcy;&acy;&ncy;&yacy;&yacy; &pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&iecy; &dcy;&iecy;&rcy;&iecy;&vcy;&ocy;, &ncy;&iecy; &mcy;&iecy;&shcy;&acy;&yucy;&shchcy;&iecy;&iecy; &rcy;&acy;&zcy;&ncy;&icy;&tscy;&iecy; &mcy;&iecy;&zhcy;&dcy;&ucy; &vcy;&iecy;&tcy;&vcy;&yacy;&mcy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_pre_auto_gc"><span data-i18n="4715169d71984a9c611eee773ebbf93c401c45afe64b37407f9cc2c3667a75a7/e1" data-source="pre-auto-gc" onmousemove="i18n(this)">pre-auto-gc</span></h3> <p><span data-i18n="a16bf57e082b2d557cb14094aab2e62ef2bedb34884e381de1033cb5bbe2257a/df" data-source="This hook is invoked by &lt;code&gt;git gc --auto&lt;/code&gt; (see &lt;a href=&quot;git-gc&quot;&gt;git-gc[1]&lt;/a&gt;). It takes no parameter, and exiting with non-zero status from this script causes the &lt;code&gt;git gc --auto&lt;/code&gt; to abort." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <code>git gc --auto</code>  (&scy;&mcy;.  <a href="git-gc.html">git-gc[1]</a> ). &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy;, &icy; &vcy;&ycy;&khcy;&ocy;&dcy; &icy;&zcy; &ecy;&tcy;&ocy;&gcy;&ocy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &acy;&vcy;&acy;&rcy;&icy;&jcy;&ncy;&ocy;&mcy;&ucy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yucy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;  <code>git gc --auto</code> .</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_post_rewrite"><span data-i18n="15625162feedc63718b82538e0b62298d0edfca3e889a90f719f17653ba74189/e2" data-source="post-rewrite" onmousemove="i18n(this)">post-rewrite</span></h3> <p><span data-i18n="16ef8520c2dbea240eff42274d2df6df5509279df96f33b3c13d48c23a62a84f/42" data-source="This hook is invoked by commands that rewrite commits (&lt;a href=&quot;git-commit&quot;&gt;git-commit[1]&lt;/a&gt; when called with &lt;code&gt;--amend&lt;/code&gt; and &lt;a href=&quot;git-rebase&quot;&gt;git-rebase[1]&lt;/a&gt;; however, full-history (re)writing tools like &lt;a href=&quot;git-fast-import&quot;&gt;git-fast-import[1]&lt;/a&gt; or &lt;a href=&quot;https://github.com/newren/git-filter-repo&quot;&gt;git-filter-repo&lt;/a&gt; typically do not call it!). Its first argument denotes the command it was invoked by: currently one of &lt;code&gt;amend&lt;/code&gt; or &lt;code&gt;rebase&lt;/code&gt;. Further command-dependent arguments may be passed in the future." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; ( <a href="git-commit.html">git-commit[1]</a>  &pcy;&rcy;&icy; &vcy;&ycy;&zcy;&ocy;&vcy;&iecy; &scy;  <code>--amend</code>  &icy;  <a href="git-rebase.html">git-rebase[1]</a> ; &ocy;&dcy;&ncy;&acy;&kcy;&ocy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&icy; &pcy;&ocy;&lcy;&ncy;&ocy;&jcy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&icy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy;  <a href="git-fast-import.html">git-fast-import[1]</a>  &icy;&lcy;&icy;  <a href="https://github.com/newren/git-filter-repo">git-filter-repo</a> , &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ncy;&iecy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&yucy;&tcy; &iecy;&gcy;&ocy;!). &IEcy;&gcy;&ocy; &pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy; &ocy;&bcy;&ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &ocy;&ncy; &bcy;&ycy;&lcy; &vcy;&ycy;&zcy;&vcy;&acy;&ncy;: &vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ecy;&tcy;&ocy; &ocy;&dcy;&ncy;&acy; &icy;&zcy;  <code>amend</code>  &icy;&lcy;&icy;  <code>rebase</code>  . &Vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&ncy;&ycy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy;, &zcy;&acy;&vcy;&icy;&scy;&yacy;&shchcy;&icy;&iecy; &ocy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;.</span></p> <p><span data-i18n="edfbe5bb8d597f63f9321715e14e43a28bb6839e51d19420d6857bd19687c8b9/93" data-source="The hook receives a list of the rewritten commits on stdin, in the format" onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&iecy;&tcy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&vcy;&ocy;&dcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &pcy;&iecy;&rcy;&iecy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy;</span></p> <div> <div> <pre class="hljs language-csharp">&lt;old-<span class="hljs-built_in">object</span>-name&gt; SP &lt;<span class="hljs-keyword">new</span>-<span class="hljs-built_in">object</span>-name&gt; [ SP &lt;extra-info&gt; ] LF</pre> </div> </div> <p><span data-i18n="1f800373c7ca8c5e418f64c00b08ca371f2d83a2af13541ef254f0236077f4e6/31" data-source="The &lt;code&gt;extra-info&lt;/code&gt; is again command-dependent. If it is empty, the preceding SP is also omitted. Currently, no commands pass any &lt;code&gt;extra-info&lt;/code&gt;." onmousemove="i18n(this)"><code>extra-info</code>  &scy;&ncy;&ocy;&vcy;&acy; &zcy;&acy;&vcy;&icy;&scy;&icy;&tcy; &ocy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;. &IEcy;&scy;&lcy;&icy; &ocy;&ncy; &pcy;&ucy;&scy;&tcy;, &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&icy;&jcy; SP &tcy;&acy;&kcy;&zhcy;&iecy; &ocy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy;. &Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ncy;&icy; &ocy;&dcy;&ncy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy;  <code>extra-info</code>  .</span></p> <p><span data-i18n="40f1dae134a1a214a516bc4ec64828af131ec79f303c2094f4d521a4dd7ef1e6/0c" data-source="The hook always runs after the automatic note copying (see &amp;quot;notes.rewrite.&amp;lt;command&amp;gt;&amp;quot; in &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt;) has happened, and thus has access to these notes." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&shcy;&lcy;&ocy; &acy;&vcy;&tcy;&ocy;&mcy;&acy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&iecy; &kcy;&ocy;&pcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &zcy;&acy;&mcy;&iecy;&tcy;&ocy;&kcy; (&scy;&mcy;.  &quot;notes.rewrite.&lt;command&gt;&quot;  &vcy;  <a href="git-config.html">git-config[1]</a> ), &icy;, &tcy;&acy;&kcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;, &icy;&mcy;&iecy;&iecy;&tcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &kcy; &ecy;&tcy;&icy;&mcy; &zcy;&acy;&mcy;&iecy;&tcy;&kcy;&acy;&mcy;.</span></p> <p><span data-i18n="efd12df2dd17ddb003c187f02f02ab6d178f581c1c41a7a15351dc618a53788e/ed" data-source="The following command-specific comments apply:" onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &kcy;&ocy;&mcy;&mcy;&iecy;&ncy;&tcy;&acy;&rcy;&icy;&icy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;:</span></p> <div> <dl> <dt id="Documentation/githooks.txt-rebase"><span data-i18n="a66eb0bb9047722fa4b65664997cede3cfa3f29b3e3485f0ed8dca91c48bf4c9/b0" data-source="rebase" onmousemove="i18n(this)">rebase</span></dt> <dd> <p><span data-i18n="6e9d62a2ee6edc8271dd5e991f79e7c330f27a55f3d580443af5d350c7b6d019/41" data-source="For the &lt;code&gt;squash&lt;/code&gt; and &lt;code&gt;fixup&lt;/code&gt; operation, all commits that were squashed are listed as being rewritten to the squashed commit. This means that there will be several lines sharing the same &lt;code&gt;new-object-name&lt;/code&gt;." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&jcy;  <code>squash</code>  &icy;  <code>fixup</code>  &vcy;&scy;&iecy; &scy;&zhcy;&acy;&tcy;&ycy;&iecy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zhcy;&acy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; &scy;&zhcy;&acy;&tcy;&ucy;&yucy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy;. &Ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &lcy;&icy;&ncy;&icy;&jcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&shchcy;&icy;&khcy; &ocy;&dcy;&icy;&ncy; &icy; &tcy;&ocy;&tcy; &zhcy;&iecy;  <code>new-object-name</code> .</span></p> <p><span data-i18n="78af01d94fce2d25d41d74c1c5324517af5e44b3df695334ca65c78598fabd96/0a" data-source="The commits are guaranteed to be listed in the order that they were processed by rebase." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &gcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&iecy;&rcy;&iecy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ycy; &vcy; &tcy;&ocy;&mcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&mcy; &ocy;&ncy;&icy; &bcy;&ycy;&lcy;&icy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&acy;&ncy;&ycy; &pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&bcy;&acy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&icy;.</span></p> </dd> </dl> </div> </div> <div> <h3 class="text-body-emphasis"  id="_sendemail_validate"><span data-i18n="52535ecd4a49a27481388590c073a142ef825bfa2a3d9c87ff7b871eac821ace/d1" data-source="sendemail-validate" onmousemove="i18n(this)">sendemail-validate</span></h3> <p><span data-i18n="d3e5e98f5635245885cc66f23624134c6a1518dff2af8a40d54a95aadeb088a1/da" data-source="This hook is invoked by &lt;a href=&quot;git-send-email&quot;&gt;git-send-email[1]&lt;/a&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <a href="git-send-email.html">git-send-email[1]</a> .</span></p> <p><span data-i18n="d833ada1a79e4820fdd09acc3e5739f8a15944e6e6b2d5de83013d3b32f161d2/7a" data-source="It takes these command line arguments. They are, 1. the name of the file which holds the contents of the email to be sent. 2. The name of the file which holds the SMTP headers of the email." onmousemove="i18n(this)">&Ocy;&ncy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ecy;&tcy;&icy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;. &Ecy;&tcy;&ocy;: 1. &Icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&gcy;&ocy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&icy;&scy;&softcy;&mcy;&acy;. 2. &Icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; SMTP-&zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&icy;&scy;&softcy;&mcy;&acy;.</span></p> <p><span data-i18n="e8b22ba59f43d9e71e61c60f4dccb5088761b65a86ef0545c4c692d8ff43e671/9d" data-source="The SMTP headers are passed in the exact same way as they are passed to the user&amp;rsquo;s Mail Transport Agent (MTA). In effect, the email given to the user&amp;rsquo;s MTA, is the contents of $2 followed by the contents of $1." onmousemove="i18n(this)">&Zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&icy; SMTP &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&chcy;&ncy;&ocy; &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy; &ocy;&ncy;&icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&yucy;&tcy;&scy;&yacy; &acy;&gcy;&iecy;&ncy;&tcy;&ucy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;&acy; &pcy;&ocy;&chcy;&tcy;&ycy; (MTA) &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;. &Pcy;&ocy; &scy;&ucy;&tcy;&icy;, &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&iecy; &pcy;&icy;&scy;&softcy;&mcy;&ocy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ocy;&iecy; MTA &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;, &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; $2, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&iecy; $1.</span></p> <p><span data-i18n="f7ef311fd14df52de1658fdf18162ab52e3641f8aee9538859f53041ae7954e6/a2" data-source="An example of a few common headers is shown below. Take notice of the capitalization and multi-line tab structure." onmousemove="i18n(this)">&Ncy;&icy;&zhcy;&iecy; &pcy;&ocy;&kcy;&acy;&zcy;&acy;&ncy; &pcy;&rcy;&icy;&mcy;&iecy;&rcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&khcy; &rcy;&acy;&scy;&pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ycy;&khcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&ocy;&vcy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy; &ncy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &zcy;&acy;&gcy;&lcy;&acy;&vcy;&ncy;&ycy;&khcy; &bcy;&ucy;&kcy;&vcy; &icy; &mcy;&ncy;&ocy;&gcy;&ocy;&scy;&tcy;&rcy;&ocy;&chcy;&ncy;&ucy;&yucy; &scy;&tcy;&rcy;&ucy;&kcy;&tcy;&ucy;&rcy;&ucy; &vcy;&kcy;&lcy;&acy;&dcy;&ocy;&kcy;.</span></p> <div> <div> <pre class="hljs language-sql"><span class="hljs-keyword">From</span>: Example <span class="hljs-operator">&lt;</span><span class="hljs-keyword">from</span><span class="hljs-variable">@example</span>.com<span class="hljs-operator">&gt;</span>
<span class="hljs-keyword">To</span>: <span class="hljs-keyword">to</span><span class="hljs-variable">@example</span>.com
Cc: cc<span class="hljs-variable">@example</span>.com,
 A <span class="hljs-operator">&lt;</span>author<span class="hljs-variable">@example</span>.com<span class="hljs-operator">&gt;</span>,
 <span class="hljs-keyword">One</span> <span class="hljs-operator">&lt;</span><span class="hljs-keyword">one</span><span class="hljs-variable">@example</span>.com<span class="hljs-operator">&gt;</span>,
 two<span class="hljs-variable">@example</span>.com
Subject: PATCH<span class="hljs-operator">-</span>STRING</pre> </div> </div> <p><span data-i18n="9c52ee2a3a91c93328643457908207a563f9cfc5c58b94cc6da44365cae391df/24" data-source="Exiting with a non-zero status causes &lt;code&gt;git send-email&lt;/code&gt; to abort before sending any e-mails." onmousemove="i18n(this)">&Vcy;&ycy;&khcy;&ocy;&dcy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&ncy;&icy;&yucy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;  <code>git send-email</code>  &pcy;&iecy;&rcy;&iecy;&dcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&ocy;&jcy; &kcy;&acy;&kcy;&icy;&khcy;-&lcy;&icy;&bcy;&ocy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ycy;&khcy; &pcy;&icy;&scy;&iecy;&mcy;.</span></p> <p><span data-i18n="c1b1c7ee187e2d7b04ba8240deec11df771472e54f6a64f21886d58fc53314b1/cc" data-source="The following environment variables are set when executing the hook." onmousemove="i18n(this)">&Scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&rcy;&iecy;&dcy;&ycy; &ucy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;.</span></p> <div> <dl> <dt id="Documentation/githooks.txt-codeGITSENDEMAILFILECOUNTERcode"> <code>GIT_SENDEMAIL_FILE_COUNTER</code> </dt> <dd> <p><span data-i18n="33fe9766def18f8c3508c0b100afaa89c48e92d067ea3209a312b346c6d7cae3/12" data-source="A 1-based counter incremented by one for every file holding an e-mail to be sent (excluding any FIFOs). This counter does not follow the patch series counter scheme. It will always start at 1 and will end at GIT_SENDEMAIL_FILE_TOTAL." onmousemove="i18n(this)">&Scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy;, &ocy;&tcy;&scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&mcy;&ycy;&jcy; &ocy;&tcy; 1, &ucy;&vcy;&iecy;&lcy;&icy;&chcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ncy;&acy; &iecy;&dcy;&icy;&ncy;&icy;&tscy;&ucy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&iecy; &ecy;&lcy;&iecy;&kcy;&tcy;&rcy;&ocy;&ncy;&ncy;&ocy;&iecy; &pcy;&icy;&scy;&softcy;&mcy;&ocy; (&icy;&scy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &lcy;&yucy;&bcy;&ycy;&iecy; FIFO). &Ecy;&tcy;&ocy;&tcy; &scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy;&khcy;&iecy;&mcy;&iecy; &scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy;&acy; &scy;&iecy;&rcy;&icy;&icy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;. &Ocy;&ncy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&iecy;&tcy;&scy;&yacy; &scy; 1 &icy; &zcy;&acy;&kcy;&acy;&ncy;&chcy;&icy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; GIT_SENDEMAIL_FILE_TOTAL.</span></p> </dd> <dt id="Documentation/githooks.txt-codeGITSENDEMAILFILETOTALcode"> <code>GIT_SENDEMAIL_FILE_TOTAL</code> </dt> <dd> <p><span data-i18n="903cbd01d17f4a434b7849a5f51e88d532340551fe591888a28536628e6ca022/03" data-source="The total number of files that will be sent (excluding any FIFOs). This counter does not follow the patch series counter scheme. It will always be equal to the number of files being sent, whether there is a cover letter or not." onmousemove="i18n(this)">&Ocy;&bcy;&shchcy;&iecy;&iecy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; (&icy;&scy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &lcy;&yucy;&bcy;&ycy;&iecy; FIFO). &Ecy;&tcy;&ocy;&tcy; &scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy;&khcy;&iecy;&mcy;&iecy; &scy;&chcy;&iecy;&tcy;&chcy;&icy;&kcy;&acy; &scy;&iecy;&rcy;&icy;&icy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;. &Ocy;&ncy;&ocy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&vcy;&ncy;&ocy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ucy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;, &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &iecy;&scy;&tcy;&softcy; &scy;&ocy;&pcy;&rcy;&ocy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &pcy;&icy;&scy;&softcy;&mcy;&ocy; &icy;&lcy;&icy; &ncy;&iecy;&tcy;.</span></p> </dd> </dl> </div> <p><span data-i18n="ff27ed44f79bfaab106a3de761d18b8422e4968376852b30aa13e15dbd224ce2/71" data-source="These variables may for instance be used to validate patch series." onmousemove="i18n(this)">&Ecy;&tcy;&icy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &mcy;&ocy;&gcy;&ucy;&tcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &scy;&iecy;&rcy;&icy;&icy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;.</span></p> <p><span data-i18n="03e55704a3f9449c2aa941ef4c2985e4147e36f82d223191103a6e8adb5d9fe5/d7" data-source="The sample &lt;code&gt;sendemail-validate&lt;/code&gt; hook that comes with Git checks that all sent patches (excluding the cover letter) can be applied on top of the upstream repository default branch without conflicts. Some placeholders are left for additional validation steps to be performed after all patches of a given series have been applied." onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;  <code>sendemail-validate</code> , &pcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ycy;&jcy; &scy;  Git , &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&iecy;&tcy;, &chcy;&tcy;&ocy; &vcy;&scy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; (&zcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &scy;&ocy;&pcy;&rcy;&ocy;&vcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &pcy;&icy;&scy;&softcy;&mcy;&acy;) &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&ycy; &pcy;&ocy;&vcy;&iecy;&rcy;&khcy; &vcy;&iecy;&tcy;&kcy;&icy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&ycy;&shcy;&iecy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &bcy;&iecy;&zcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ocy;&vcy;. &Ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &zcy;&acy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&icy; &ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &dcy;&lcy;&yacy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&khcy; &shcy;&acy;&gcy;&ocy;&vcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &icy;&scy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy; &dcy;&acy;&ncy;&ncy;&ocy;&jcy; &scy;&iecy;&rcy;&icy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_fsmonitor_watchman"><span data-i18n="3b1c9c19b398669d37c7c1dcbb9219eb885df81b12b05fba473ac108ed5b8b22/16" data-source="fsmonitor-watchman" onmousemove="i18n(this)">fsmonitor-watchman</span></h3> <p><span data-i18n="2eb1c0f04aaf8d2506fbe597e7327785e376eb10fdc96aa3cb09a29e3314f956/c6" data-source="This hook is invoked when the configuration option &lt;code&gt;core.fsmonitor&lt;/code&gt; is set to &lt;code&gt;.git/hooks/fsmonitor-watchman&lt;/code&gt; or &lt;code&gt;.git/hooks/fsmonitor-watchmanv2&lt;/code&gt; depending on the version of the hook to use." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &dcy;&lcy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>core.fsmonitor</code>  &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;  <code>.git/hooks/fsmonitor-watchman</code>  &icy;&lcy;&icy;  <code>.git/hooks/fsmonitor-watchmanv2</code> , &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ocy;&jcy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy;.</span></p> <p><span data-i18n="b7bbce3f130ea4d6d444dbae33381ae40d05349f837b84da06a4ac78314ed2fc/83" data-source="Version 1 takes two arguments, a version (1) and the time in elapsed nanoseconds since midnight, January 1, 1970." onmousemove="i18n(this)">&Vcy;&iecy;&rcy;&scy;&icy;&yacy; 1 &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &dcy;&vcy;&acy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;: &vcy;&iecy;&rcy;&scy;&icy;&yucy; (1) &icy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy; &ncy;&acy;&ncy;&ocy;&scy;&iecy;&kcy;&ucy;&ncy;&dcy;&acy;&khcy;, &pcy;&rcy;&ocy;&shcy;&iecy;&dcy;&shcy;&iecy;&iecy; &scy; &pcy;&ocy;&lcy;&ucy;&ncy;&ocy;&chcy;&icy; 1 &yacy;&ncy;&vcy;&acy;&rcy;&yacy; 1970 &gcy;&ocy;&dcy;&acy;.</span></p> <p><span data-i18n="b63ccd8891cbb942767c3497e0a1b8361387156484dea0e62d5de748ececfcd1/52" data-source="Version 2 takes two arguments, a version (2) and a token that is used for identifying changes since the token. For watchman this would be a clock id. This version must output to stdout the new token followed by a NUL before the list of files." onmousemove="i18n(this)">&Vcy;&iecy;&rcy;&scy;&icy;&yacy; 2 &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &dcy;&vcy;&acy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;: &vcy;&iecy;&rcy;&scy;&icy;&yucy; (2) &icy; &tcy;&ocy;&kcy;&iecy;&ncy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &scy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&acy; &pcy;&ocy;&yacy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &tcy;&ocy;&kcy;&iecy;&ncy;&acy;. &Dcy;&lcy;&yacy; &scy;&tcy;&ocy;&rcy;&ocy;&zhcy;&acy; &ecy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &chcy;&acy;&scy;&ocy;&vcy;. &Ecy;&tcy;&acy; &vcy;&iecy;&rcy;&scy;&icy;&yacy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &vcy;&ycy;&vcy;&ocy;&dcy;&icy;&tcy;&softcy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy; &ncy;&ocy;&vcy;&ycy;&jcy; &tcy;&ocy;&kcy;&iecy;&ncy;, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; NUL &pcy;&iecy;&rcy;&iecy;&dcy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;.</span></p> <p><span data-i18n="b58e18e740a0ebb4f156ee97f7ed26e46f948781df92a56d797198bfbe1c403d/c8" data-source="The hook should output to stdout the list of all files in the working directory that may have changed since the requested time. The logic should be inclusive so that it does not miss any potential changes. The paths should be relative to the root of the working directory and be separated by a single NUL." onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &vcy;&ycy;&vcy;&iecy;&scy;&tcy;&icy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &vcy;&ycy;&vcy;&ocy;&dcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &vcy;&scy;&iecy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &vcy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&mcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &mcy;&ocy;&gcy;&lcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &scy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy;. &Lcy;&ocy;&gcy;&icy;&kcy;&acy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &bcy;&ycy;&tcy;&softcy; &vcy;&scy;&iecy;&ocy;&bcy;&hardcy;&iecy;&mcy;&lcy;&yucy;&shchcy;&iecy;&jcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ncy;&iecy; &ucy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&softcy; &ncy;&icy; &ocy;&dcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&tcy;&iecy;&ncy;&tscy;&icy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;. &Pcy;&ucy;&tcy;&icy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &kcy;&ocy;&rcy;&ncy;&yacy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy; &icy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy; &ocy;&dcy;&ncy;&icy;&mcy; NUL.</span></p> <p><span data-i18n="75414464d86dcf7d4255688ad8e48a62da26c1042523d50d0002308350b290c0/37" data-source="It is OK to include files which have not actually changed. All changes including newly-created and deleted files should be included. When files are renamed, both the old and the new name should be included." onmousemove="i18n(this)">&Mcy;&ocy;&zhcy;&ncy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &fcy;&acy;&kcy;&tcy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&icy;&scy;&softcy;. &Vcy;&scy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&yacy; &vcy;&ncy;&ocy;&vcy;&softcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;, &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &bcy;&ycy;&tcy;&softcy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ycy;. &Pcy;&rcy;&icy; &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ocy;&vcy;&acy;&ncy;&icy;&icy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy; &scy;&tcy;&acy;&rcy;&ocy;&iecy;, &tcy;&acy;&kcy; &icy; &ncy;&ocy;&vcy;&ocy;&iecy; &icy;&mcy;&yacy;.</span></p> <p><span data-i18n="08deecea6cbce16c0530e636721e6050517d8723b6616bcc1a2d3f666d28af62/00" data-source="Git will limit what files it checks for changes as well as which directories are checked for untracked files based on the path names given." onmousemove="i18n(this)">Git  &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&icy;&vcy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &ocy;&ncy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&iecy;&tcy; &ncy;&acy; &ncy;&acy;&lcy;&icy;&chcy;&icy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &kcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&icy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&acy; &ncy;&acy;&lcy;&icy;&chcy;&icy;&iecy; &ncy;&iecy;&ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ycy;&khcy; &icy;&mcy;&iecy;&ncy; &pcy;&ucy;&tcy;&iecy;&jcy;.</span></p> <p><span data-i18n="051ef7a091a02103585f824c9cf676bf2f396f8791cd2914e66edbff752448d4/a9" data-source="An optimized way to tell git &amp;quot;all files have changed&amp;quot; is to return the filename &lt;code&gt;/&lt;/code&gt;." onmousemove="i18n(this)">&Ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy; &scy;&ocy;&ocy;&bcy;&shchcy;&icy;&tcy;&softcy;  git  &ocy;  &quot;all files have changed&quot;  &mdash; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy; &icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;  <code>/</code> .</span></p> <p><span data-i18n="c43c4d5cb52b7a50456a839bd6fd362092d821cf0464bf15cfaac8119b5ce308/51" data-source="The exit status determines whether git will use the data from the hook to limit its search. On error, it will fall back to verifying all files and folders." onmousemove="i18n(this)">&Scy;&tcy;&acy;&tcy;&ucy;&scy; &vcy;&ycy;&khcy;&ocy;&dcy;&acy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &bcy;&ucy;&dcy;&iecy;&tcy; &lcy;&icy;  git  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &dcy;&lcy;&yacy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&icy;&scy;&kcy;&acy;. &Vcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ocy;&shcy;&icy;&bcy;&kcy;&icy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&jcy;&dcy;&iecy;&tcy; &vcy;&ocy;&zcy;&vcy;&rcy;&acy;&tcy; &kcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&iecy; &vcy;&scy;&iecy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &icy; &pcy;&acy;&pcy;&ocy;&kcy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_p4_changelist"><span data-i18n="f6b69071c2b25315a98fa8b888704c6f7652fa9300e84c548984c87df4c5e1bb/94" data-source="p4-changelist" onmousemove="i18n(this)">p4-changelist</span></h3> <p><span data-i18n="71442d2c0857e15c9c7feb4042f09f97f49bcb7dd5c547d94e708d73889e814f/96" data-source="This hook is invoked by &lt;code&gt;git-p4 submit&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <code>git-p4 submit</code> .</span></p> <p><span data-i18n="c71aea29bb9f30581a18c83fbd349b52c9397c8226fe5ebca4249b209f06720a/64" data-source="The &lt;code&gt;p4-changelist&lt;/code&gt; hook is executed after the changelist message has been edited by the user. It can be bypassed with the &lt;code&gt;--no-verify&lt;/code&gt; option. It takes a single parameter, the name of the file that holds the proposed changelist text. Exiting with a non-zero status causes the command to abort." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;  <code>p4-changelist</code>  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &scy;&pcy;&icy;&scy;&kcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &bcy;&ycy;&lcy;&ocy; &ocy;&tcy;&rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy;. &IEcy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--no-verify</code> . &Ocy;&ncy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &iecy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &mdash; &icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; &pcy;&rcy;&iecy;&dcy;&lcy;&acy;&gcy;&acy;&iecy;&mcy;&ycy;&jcy; &tcy;&iecy;&kcy;&scy;&tcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&ncy;&icy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;.</span></p> <p><span data-i18n="dc727e2b6ce4e102c617c3657abc4978ba9c62729faba9a80302832462295ec7/16" data-source="The hook is allowed to edit the changelist file and can be used to normalize the text into some project standard format. It can also be used to refuse the Submit after inspect the message file." onmousemove="i18n(this)">&KHcy;&ucy;&kcy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &icy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &ncy;&ocy;&rcy;&mcy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &tcy;&iecy;&kcy;&scy;&tcy;&acy; &vcy; &kcy;&acy;&kcy;&ocy;&mcy;-&lcy;&icy;&bcy;&ocy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&mcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &pcy;&rcy;&ocy;&iecy;&kcy;&tcy;&acy;. &IEcy;&gcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &dcy;&lcy;&yacy; &ocy;&tcy;&kcy;&acy;&zcy;&acy; &vcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&iecy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &fcy;&acy;&jcy;&lcy;&acy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="0820606b58351ac8fa2fa7b45a9a754dcbb63bd59dd87e1b007e671fdd8664e4/00" data-source="Run &lt;code&gt;git-p4 submit --help&lt;/code&gt; for details." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy;  <code>git-p4 submit --help</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_p4_prepare_changelist"><span data-i18n="67a1b0e5e0a754b5aac95e7c3759a415388ef0bc1787a61589a73208e64eb326/ef" data-source="p4-prepare-changelist" onmousemove="i18n(this)">p4-prepare-changelist</span></h3> <p><span data-i18n="71442d2c0857e15c9c7feb4042f09f97f49bcb7dd5c547d94e708d73889e814f/96" data-source="This hook is invoked by &lt;code&gt;git-p4 submit&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <code>git-p4 submit</code> .</span></p> <p><span data-i18n="f8447fceb727fd96a75d0e0aa46ddce98843841ff93e9c9590b8ab1da295385a/24" data-source="The &lt;code&gt;p4-prepare-changelist&lt;/code&gt; hook is executed right after preparing the default changelist message and before the editor is started. It takes one parameter, the name of the file that contains the changelist text. Exiting with a non-zero status from the script will abort the process." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>p4-prepare-changelist</code>  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&ocy;&vcy;&kcy;&icy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &scy;&pcy;&icy;&scy;&kcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy; &pcy;&iecy;&rcy;&iecy;&dcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&ocy;&mcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&acy;. &Ocy;&ncy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ocy;&dcy;&icy;&ncy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &mdash; &icy;&mcy;&yacy; &fcy;&acy;&jcy;&lcy;&acy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&iecy;&gcy;&ocy; &tcy;&iecy;&kcy;&scy;&tcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&jcy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &icy;&zcy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&tcy; &kcy; &pcy;&rcy;&iecy;&rcy;&ycy;&vcy;&acy;&ncy;&icy;&yucy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;.</span></p> <p><span data-i18n="464da88b70df71414bdb57f0b3c270a358e9e71c8b11518b23adf614ed139d3f/da" data-source="The purpose of the hook is to edit the message file in place, and it is not suppressed by the &lt;code&gt;--no-verify&lt;/code&gt; option. This hook is called even if &lt;code&gt;--prepare-p4-only&lt;/code&gt; is set." onmousemove="i18n(this)">&TScy;&iecy;&lcy;&softcy;&yucy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&acy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&acy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&yacy; &ncy;&acy; &mcy;&iecy;&scy;&tcy;&iecy;, &icy; &ocy;&ncy;&ocy; &ncy;&iecy; &pcy;&ocy;&dcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--no-verify</code> . &Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;  <code>--prepare-p4-only</code> .</span></p> <p><span data-i18n="0820606b58351ac8fa2fa7b45a9a754dcbb63bd59dd87e1b007e671fdd8664e4/00" data-source="Run &lt;code&gt;git-p4 submit --help&lt;/code&gt; for details." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy;  <code>git-p4 submit --help</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_p4_post_changelist"><span data-i18n="cb53cbae723c5d9335a4c1afc84d575721950381b92352026984ea5df460d520/11" data-source="p4-post-changelist" onmousemove="i18n(this)">p4-post-changelist</span></h3> <p><span data-i18n="71442d2c0857e15c9c7feb4042f09f97f49bcb7dd5c547d94e708d73889e814f/96" data-source="This hook is invoked by &lt;code&gt;git-p4 submit&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <code>git-p4 submit</code> .</span></p> <p><span data-i18n="4b8ca133004e3c162517e999879775fb8a3a28da842484e30a7fb361bea102a4/cd" data-source="The &lt;code&gt;p4-post-changelist&lt;/code&gt; hook is invoked after the submit has successfully occurred in P4. It takes no parameters and is meant primarily for notification and cannot affect the outcome of the git p4 submit action." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>p4-post-changelist</code>  &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &ucy;&scy;&pcy;&iecy;&shcy;&ncy;&ocy;&jcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &vcy; P4. &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &icy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy; &vcy; &pcy;&iecy;&rcy;&vcy;&ucy;&yucy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &dcy;&lcy;&yacy; &ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy; &ncy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&vcy;&lcy;&icy;&yacy;&tcy;&softcy; &ncy;&acy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy;  git  p4.</span></p> <p><span data-i18n="0820606b58351ac8fa2fa7b45a9a754dcbb63bd59dd87e1b007e671fdd8664e4/00" data-source="Run &lt;code&gt;git-p4 submit --help&lt;/code&gt; for details." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy;  <code>git-p4 submit --help</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_p4_pre_submit"><span data-i18n="f9a2db9aa7e62080e98c1cd299e262142b74164009771ea11682d59390f85e9c/40" data-source="p4-pre-submit" onmousemove="i18n(this)">p4-pre-submit</span></h3> <p><span data-i18n="cb541e5d25d8c8ef024eefaac9d40aaa875b33c7023793c339ea64bf6a21ce5e/11" data-source="This hook is invoked by &lt;code&gt;git-p4 submit&lt;/code&gt;. It takes no parameters and nothing from standard input. Exiting with non-zero status from this script prevent &lt;code&gt;git-p4 submit&lt;/code&gt; from launching. It can be bypassed with the &lt;code&gt;--no-verify&lt;/code&gt; command line option. Run &lt;code&gt;git-p4 submit --help&lt;/code&gt; for details." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;  <code>git-p4 submit</code> . &Ocy;&ncy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&khcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy; &icy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &icy;&zcy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ocy;&gcy;&ocy; &vcy;&vcy;&ocy;&dcy;&acy;. &Vcy;&ycy;&khcy;&ocy;&dcy; &icy;&zcy; &ecy;&tcy;&ocy;&gcy;&ocy; &scy;&tscy;&iecy;&ncy;&acy;&rcy;&icy;&yacy; &scy; &ncy;&iecy;&ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &scy;&tcy;&acy;&tcy;&ucy;&scy;&ocy;&mcy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;  <code>git-p4 submit</code> . &IEcy;&gcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ocy;&bcy;&ocy;&jcy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>--no-verify</code> . &Zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy;  <code>git-p4 submit --help</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;.</span></p> </div> <div> <h3 class="text-body-emphasis"  id="_post_index_change"><span data-i18n="0dab4074404218e413ce36ceb803c4c6a04574a9eda43f90902b01a6036af00d/b9" data-source="post-index-change" onmousemove="i18n(this)">post-index-change</span></h3> <p><span data-i18n="3846fa7c65a461cd3ce30e4811ffaa8121f171728912c3b287e2970ba5988e1a/e2" data-source="This hook is invoked when the index is written in read-cache.c do_write_locked_index." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &khcy;&ucy;&kcy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; read-cache.c do_write_locked_index.</span></p> <p><span data-i18n="6de38aee3594f11be8ecdb6a411654faeffa925dc6915443eb9bf511fed96954/36" data-source="The first parameter passed to the hook is the indicator for the working directory being updated. &amp;quot;1&amp;quot; meaning working directory was updated or &amp;quot;0&amp;quot; when the working directory was not updated." onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&jcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ucy;, &mdash; &ecy;&tcy;&ocy; &icy;&ncy;&dcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&mcy;&ocy;&gcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&acy;.  &quot;1&quot;  &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &bcy;&ycy;&lcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;, &icy;&lcy;&icy;  &quot;0&quot; , &kcy;&ocy;&gcy;&dcy;&acy; &rcy;&acy;&bcy;&ocy;&chcy;&icy;&jcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &ncy;&iecy; &bcy;&ycy;&lcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;.</span></p> <p><span data-i18n="bab9f69231a27c0df0b6ad7ff9e1fd74beff4d16c176f3eb8bdee52d46a62156/53" data-source="The second parameter passed to the hook is the indicator for whether or not the index was updated and the skip-worktree bit could have changed. &amp;quot;1&amp;quot; meaning skip-worktree bits could have been updated and &amp;quot;0&amp;quot; meaning they were not." onmousemove="i18n(this)">&Vcy;&tcy;&ocy;&rcy;&ocy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;, &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&jcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ucy;, &mdash; &ecy;&tcy;&ocy; &icy;&ncy;&dcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &tcy;&ocy;&gcy;&ocy;, &bcy;&ycy;&lcy; &lcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &icy; &mcy;&ocy;&gcy; &lcy;&icy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &bcy;&icy;&tcy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy;.  &quot;1&quot;  &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &bcy;&icy;&tcy;&ycy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy; &rcy;&acy;&bcy;&ocy;&chcy;&iecy;&gcy;&ocy; &dcy;&iecy;&rcy;&iecy;&vcy;&acy; &mcy;&ocy;&gcy;&lcy;&icy; &bcy;&ycy;&tcy;&softcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy;, &acy;  &quot;0&quot;  &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &ocy;&ncy;&icy; &ncy;&iecy; &bcy;&ycy;&lcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy;.</span></p> <p><span data-i18n="0acea23b806748bb7bdb551fe982394f13cb8f6fb25a20903e34244fc0c42f4e/ce" data-source="Only one parameter should be set to &amp;quot;1&amp;quot; when the hook runs. The hook running passing &amp;quot;1&amp;quot;, &amp;quot;1&amp;quot; should not be possible." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ocy;&dcy;&icy;&ncy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy; &ncy;&acy;  &quot;1&quot; . &Kcy;&rcy;&yucy;&kcy;, &pcy;&rcy;&ocy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&jcy; &mcy;&icy;&mcy;&ocy;  &quot;1&quot; ,  &quot;1&quot; , &ncy;&iecy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&iecy;&ncy;.</span></p> </div> </div> <h2 class="text-body-emphasis"  id="_see_also"><span data-i18n="2fa97693b70fa87b95b2d1bdf9558e4ac65d5e82d145f13a03849c4d9c4957a9/40" data-source="See also" onmousemove="i18n(this)">See also</span></h2> <div> <p><a href="git-hook.html"><span data-i18n="5daf99a375d256af95baa15fae77b203e8eb139d4f509f846b427cebb543e138/14" data-source="git-hook[1]" onmousemove="i18n(this)">git-hook[1]</span></a></p> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/githooks">https://git-scm.com/docs/githooks</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitignore.html">
                            gitignore                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitk.html">
                            gitk                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitmailmap.html">
                            gitmailmap                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitmodules.html">
                            gitmodules                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitnamespaces.html">
                            gitnamespaces                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitprotocol-capabilities.html">
                            gitprotocol capabilities                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitprotocol-common.html">
                            gitprotocol common                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="githooks.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>